Renew notice after create a cron job

a few months back, I installed let’s encript SSL and created a cron job. I assume that will automatically take care of the renewal, but i recently received email Let’s Encrypt certificate expiration notice, does that mean cron job i created is not effective?

without your domain name ( and those in the email) it’s impossible to say for certain.

What commonly happens is someone creates a certificate for “” and then realises they needed to create it for both “” and “” so they do so. The cron correctly renews the certificate bot both domains, but the original one for just “” is not renewed, as it’s no longer needed - and people get an email about this domain. If this is the case for you, I can’t say, without additional information.

1 Like

That depends on how you setup your cron job in the first place, did you make your cron email you the log file every time it runs ??

This is how my cron runs and it works flawlessly

sudo nano /bin/

paste these contents below into nano and change the email address your email address

cd /opt/certbot
sudo ./certbot-auto renew >> /var/log/certbot-renew.log
sudo service nginx reload
mail -s "CERTBOT Renewals" < /var/log/certbot-renew.log
exit 0

CTRL+X and Y to save the file


sudo chmod +x /bin/

then sudo crontab -e

00 20 * * * /bin/

This will run the renew script daily

00 20 * * 1 /bin/

or this above will run the renewals every Monday

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.