Guides 7 min read Published February 1, 2025

How to Renew Let's Encrypt SSL Certificates on Ubuntu, Debian, and CentOS (Nginx & Apache Guide)

Complete sysadmin guide to renewing Let's Encrypt certificates manually and automating renewals with systemd timers.

🛡️
CheckSSLExpiry Security Research Team SSL/TLS Security & Cryptographic Reliability

⚡ Check Your Domain's SSL Expiry Right Now

Instant certificate inspection and zero-login automated email alerts.

1. Test Renewal with Dry Run (Safe Simulation)

sudo certbot renew --dry-run

If all challenges succeed without error, your automated renewal pipeline is healthy.

2. Force Immediate Certificate Renewal

sudo certbot renew --force-renewal

3. Configure Automatic Web Server Reload (Deploy Hook)

# For Nginx:
sudo certbot renew --deploy-hook "systemctl reload nginx"

# For Apache:
sudo certbot renew --deploy-hook "systemctl reload apache2"

4. Verify Systemd Renewal Timer on Linux

sudo systemctl status certbot.timer

⚡ Verify Your Live Expiry Date After Renewal

Confirm that your web server is serving the new renewed certificate live.

Check Live Expiry Date →
Advertisement
Ad Space Reserved