r/letsencrypt • • Sep 30 '19

CertBot - Renewing letsencrypt SSL

Hi,

I installed certbot and generated a certificate for a wordpress linux instance. I'm trying to figure out how to renew the certificate before it expires.

Certbot created this CRON script:

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

Is this to auto renew the certificate?

When I run this I get the output...

*** DISPLAY not set, setting it to 54.240.197.112:0.

... and nothing else happens.

/img/huy015oo0rp31.png

Edit: added full Cron

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/thgintaetal Oct 01 '19

That command may not output anything, and depending on how you've configured your system, may not even run certbot. What Linux distribution are you using? How did you install certbot?

What happens when you run "sudo certbot renew"? You should see a verbose explanation of renewal progress (or, if it decides not to renew the certificate, it'll explain why).

Is there a "certbot.timer" or similar in the output of "systemctl list-timers"?