To make automatic renew you Letsencrypt certificates you need create crontab job.

Here is simple instructions

1. Create /root/certrenew.sh file with content:

2. Make it executable chmod +x /root/certrenew.sh
3. sudo crontab -e
4. Add crontab job. Job for running every day at 3:15AM will be next:

/var/log/le-renew.log – log file

Let me know better approach in comments.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.