← Back to Blog

How to Auto-Renew Let's Encrypt SSL Certificates

Set up automatic renewal for your Let's Encrypt SSL certificates. Learn different methods to ensure your certificates never expire and your website stays secure.

Let's Encrypt SSL certificates expire every 90 days, which means you need to renew them regularly to keep your website secure. Manual renewal can be time-consuming and easy to forget, leading to expired certificates and security warnings. This guide will show you how to set up automatic renewal for your Let's Encrypt SSL certificates.

Why Auto-Renewal is Important

Expired SSL certificates cause browsers to show "Not Secure" warnings, which can damage your website's credibility and SEO rankings. Automatic renewal ensures your certificates are always up to date without manual intervention.

Method 1: Using SSLForLife (Recommended)

The Easiest Way to Auto-Renew Certificates

SSLForLife provides the simplest solution for automatic SSL certificate renewal:

  1. Sign Up: Create a free SSLForLife account
  2. Add Your Domain: Add all domains you want to manage
  3. Enable Notifications: SSLForLife automatically tracks certificate expiration dates
  4. Receive Reminders: Get email notifications 30, 14, 7, and 1 day before expiration
  5. One-Click Renewal: Renew certificates with a single click from your dashboard
  6. Download & Install: Download renewed certificates and install them on your server

Benefits: Centralized management, expiration tracking, email reminders, and easy renewal process for multiple domains.

Method 2: Using Certbot with Cron Job

Automated Renewal on Your Server

If you have server access, you can set up Certbot to automatically renew certificates:

Step 1: Install Certbot

Install Certbot on your server (varies by operating system):

# Ubuntu/Debian
sudo apt-get update
sudo apt-get install certbot

# CentOS/RHEL
sudo yum install certbot

Step 2: Set Up Automatic Renewal

Certbot includes a renewal script that runs twice daily. Test it first:

sudo certbot renew --dry-run

Step 3: Configure Cron Job

Add a cron job to check for renewal daily (Certbot's timer should handle this, but you can add a manual check):

# Edit crontab
sudo crontab -e

# Add this line to check daily at 2 AM
0 2 * * * certbot renew --quiet --deploy-hook "systemctl reload nginx"

Method 3: Using cPanel AutoSSL

Automatic SSL in cPanel

If you're using cPanel, AutoSSL can automatically renew Let's Encrypt certificates:

  1. Enable AutoSSL: In cPanel, go to SSL/TLS Status
  2. Select Domains: Choose which domains should have AutoSSL enabled
  3. Automatic Renewal: cPanel will automatically renew certificates before expiration
  4. Monitor Status: Check SSL/TLS Status regularly to ensure renewals are working

Note: AutoSSL requires cPanel access and may not be available on all hosting plans.

Method 4: Using acme.sh Script

Advanced Shell Script for Certificate Management

acme.sh is a powerful shell script for automatic certificate renewal:

Installation:

curl https://get.acme.sh | sh

Issue Certificate:

acme.sh --issue -d yourdomain.com -w /var/www/html

Auto-Renewal:

acme.sh automatically sets up a cron job for renewal. Certificates are renewed automatically when they're within 30 days of expiration.

Best Practices for Auto-Renewal

Troubleshooting Auto-Renewal

Renewal Fails

If automatic renewal fails:

Certificate Not Updating

If the certificate renews but doesn't update on your server:

Why Use SSLForLife for Auto-Renewal?

SSLForLife simplifies the entire SSL certificate management process:

  • ✅ Centralized dashboard for all your certificates
  • ✅ Automatic expiration tracking
  • ✅ Email reminders before expiration
  • ✅ One-click certificate renewal
  • ✅ Easy certificate download
  • ✅ Works with any hosting provider
  • ✅ No server access required
  • ✅ Free SSL certificates from Let's Encrypt

Conclusion

Automatic SSL certificate renewal is essential for maintaining website security. Whether you use SSLForLife, Certbot, cPanel AutoSSL, or acme.sh, setting up automatic renewal ensures your certificates never expire and your website stays secure. SSLForLife provides the easiest solution, especially if you manage multiple domains or don't have direct server access.

Simplify SSL Certificate Management

SSLForLife makes SSL certificate renewal simple. Get automatic expiration tracking, renewal reminders, and easy certificate management.

Get Started Free