Skip to content

HTTPS - Exposing ca option #216

Description

@rac146

I noticed with the upcoming expiration of the LetsEncrypt DST Root CA X3 root cert, I had to include my fullchain.pem as the 'ca' option when creating the https server, otherwise the cert was still trying to use the old DST Root CA (which expires Sept 30) instead of the new ISRG Root X1 cert, resulting in expired/invalid https requests.

My certs were generated with certbot

Info: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/

It's a really simple change in dev-server.js.
Starting at line 46:

const key = fs.readFileSync(options.key)
const cert = fs.readFileSync(options.cert)
const ca = fs.readFileSync(options.ca)
server = https.createServer({ key, cert, ca }, app)

In essence, making a new option for 'ca' exposes it to the nollup options.

Can anyone else confirm/deny they're seeing the same issue? Is there another way to workaround this problem without setting 'ca'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions