Automatic renewal #26
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, well done 👍
How automatic renewal works? Does it kind of a cron job?
Or should I call the
register
method every month to ensure my certificates renewed?Each certificate has an expiry time listed on the certificate which is cached and checked on each new tls session request.
When the certificate is less than 15 days from expiring, register is automatically called (with a random jitter to prevent simultaneous renewal on high-traffic sites).
There’s nothing that you have to do. :)
Thank you for your quick response.
So it means if there is no traffic for more than 90 days, they will be expired. Am I right?
And I don't use the default middleware. Instead, I've got my own SNICallback. I think in this use-case, the renewal process won't work.
That's correct. This was built assuming a public-facing webserver with daily traffic. However, if I recall correctly, it will wait until the certificate has renewed until responding to the request if the cert is expired.
What's your use case?
Dipping down into the SNICallback is certainly valid, but there may be a way to do what you need to do and still take advantage of the built-in niceties (maybe by calling greenlock's SNICallback after you do what you need to do).