Answer the question
In order to leave comments, you need to log in
How do I renew my Lets Encrypt certificate?
The documentation says that certbot renew renews certificates. certbot renews certificates at its discretion. For example, when a certificate is 10 days old, it outputs this: Cert not yet due for renewal. Is it possible to renew the certificate in advance, for example, a day before. Will certbot consider such a certificate still valid?
Answer the question
In order to leave comments, you need to log in
The flag --force-renewal
will force an update regardless of the date. See the certificate renewal documentation .
But you hardly need it - with a regular regular run by cron once a day, this script will update the certificate itself at the right time.
You can renew up to 30 days before the expiration date.
https://community.letsencrypt.org/t/info-expiratio...
so put it in cron.
Just show your way
* */12 * * * cd /root/certbot/ && ./certbot-auto renew >> /dev/null 2>&1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question