Auto renew SSL certificate

Open your crontab with crontab -e

Then add that line (do not forget change domains with yours)

5 16 * * 0 certbot --force-renewal --quiet --apache -d example.com -d www.example.com

The cronjob works weekly. More detail about cron job : https://crontab.guru/

Leave a Reply

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