Does this package actually acquire and renew certs?
Opened this issue · 11 comments
As per the title or do you need to manage that separately?
When invoking LetsEncrypt.startSecureServer
with requestCertificate: true
and checkCertificate: true
, it triggers the acquisition of a new certificate if absent or expired. Refer to the documentation for more details. It's important to note that this process occurs solely during the server's startup.
(Indeed, there is a need for updating the documentation.)
Best regards.
You can call:
... with requestCertificate : true
And if it returns okRefreshed
, you need to close the Server
socket and re-open it.
Please, let me know if it works well.
Any contributions in the form of documentation or examples would be greatly appreciated.
Best regards
...
I will be happy to review a PR. Just make it backward compatible.
Maybe startSecureServer
(with the current parameters) should call your new function, with a better definition.
For the moment I will leave this link here.
The handyman project demonstrates certificate renewal use a task scheduler that checks every hour if a cert needs to be renewed - renews the cert - and restarts the service with the new cert.