Linux Auto-renew LetsEncrypt Certificates

The command will automatically auto-renew all Let's Encrypt certificates on your server ever two months.

More specifically, it will attempt auto-renewal.  If the certificate is not up for renewal yet, it will be skipped.
#The CRON  (auto-renew every 2 months)
30 3 1 */2 * /var/www/html/renew-certs.sh

#The renew-certs script
cd [letsencrypt directory]/letsencrypt/
./letsencrypt-auto renew
service httpd graceful    #specific to apache
Posted by
Snippet Viewed 5159 times.

Share your Linux code snippets:

  • Get some recognition & link back to your site.

 

Submit | Browse

Most Recent linux snippets

Most Viewed