E
E
elisey4742017-05-09 16:25:17
linux
elisey474, 2017-05-09 16:25:17

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

4 answer(s)
S
Sergey Sokolov, 2017-05-09
@sergiks

The flag --force-renewalwill 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.

A
Andrey Burov, 2017-05-09
@BuriK666

You can renew up to 30 days before the expiration date.
https://community.letsencrypt.org/t/info-expiratio...

P
planc, 2017-05-09
@planc

https://serversforhackers.com/video/letsencrypt-fo...

V
Victor Taran, 2017-05-10
@shambler81

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 question

Ask a Question

731 491 924 answers to any question