All we need is automate the process. This is a single script for letsencrypt auto renewal.
Step1. Create a file like “root/letsencrypt.sh” then put the following script, you can set the cron job as you like.
letsencrypt-auto renew script
#Updating letsencrypt python
#echo -e "\n`date`: Lets Encrypt check started."
/sbin/service httpd stop
/opt/letsencrypt/letsencrypt-auto renew --renew-hook "/sbin/service httpd reload"
/sbin/service httpd start
echo -e "\n`date`: Lets Encrypt check completed.\n"
echo -e "==============================================================="