Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS certificate should hot reload when updated #52

Closed
sigseg1v opened this issue Feb 10, 2020 · 1 comment
Closed

HTTPS certificate should hot reload when updated #52

sigseg1v opened this issue Feb 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@sigseg1v
Copy link
Owner

If a web server has uptime longer than the HTTPS certificate, or if it's simply running when a cert needs to be updated, it should automatically load the updated certificate. See nodejs/node#23644
The alternative is restarting after the cert is renewed which also works but isn't ideal.

@sigseg1v sigseg1v added the enhancement New feature or request label Feb 10, 2020
@joshxyzhimself
Copy link

joshxyzhimself commented Feb 28, 2020

Hi, curious about this. Does server.setSecureContext(options) work with you?

At https://nodejs.org/api/tls.html#tls_server_setsecurecontext_options it says

The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.


Edit: Lol I thought I'm at https://github.com/nodejs/node repo sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants