This tutorial will assist you to renew Let’s Encrypt certificates automatically. You don’t got to renew SSL certificates manually whenever . The certbot script will lookout of this and renew certificates before expiration.

Auto Renew Let’s Encrypt SSL
Certbot comes with a script to renew existing certificates. you’ll test the renewal script with one rehearsal like below.

sudo /usr/sbin/certbot-auto renew –dry-run

If the above test succeeded, then create a cron job which will run the SSL renewal program for configured intervals. Configuring this script once each day is sweet enough.

Make sure the certbot binary script location as per below command. Let’s edit crontab with the subsequent command.

crontab -e

Add the below command at end of fine and reserve it .

0 * * * * /usr/sbin/certbot-auto renew

Some of the sysadmin’s keep script name certbot, So change the script name as per your setup.