Skip to content

How to Auto-Renew a Let's Encrypt Certificate

TL;DR:

Let's Encrypt auto-renewal: sudo certbot renew --dry-run — test. Then cron: 0 3 * * * certbot renew --quiet --post-hook "systemctl reload nginx". Let's Encrypt is valid 90 days; certbot renews 30 days before expiry.

Check your site's SSL →

Step-by-step guide

  1. Check certificate expiry. Online: /en/ssl. CLI: sudo certbot certificates.
  2. Dry-run renewal. sudo certbot renew --dry-run — tests the renewal without touching the live certificate.
  3. Configure cron for auto-renewal. sudo crontab -e0 3 * * * certbot renew --quiet --post-hook "systemctl reload nginx"
  4. SSL expiry monitoring. Enable Enterno.io SSL monitoring — email/Telegram alert 14 days before expiry if certbot fails for any reason.
  5. Post-renewal verification. After a minute, check curl -sI https://example.com — new Not-After expected. Or Ctrl+Shift+R in the browser.

Open tool →

Understanding Let's Encrypt Certificate Expiration

Let's Encrypt certificates are crucial for ensuring secure connections on your website. However, they come with an expiration period of just 90 days. This short lifespan is designed to encourage automation in certificate management. If you're managing a website, it's vital to understand how this expiration affects your service and what steps to take to avoid downtime.

When a certificate approaches its expiration date, browsers will start displaying warnings to users, which can lead to trust issues and loss of traffic. Therefore, knowing when your certificate expires is essential. You can check the expiration date of your certificate using the following command:

openssl x509 -in /etc/letsencrypt/live/yourdomain.com/fullchain.pem -noout -dates

This command will output the start and end dates of your certificate, allowing you to plan for renewal. It's advisable to monitor your certificates regularly to ensure they are renewed before expiration.

Common Issues When Renewing Let's Encrypt Certificates

Renewing Let's Encrypt certificates can sometimes lead to issues that prevent successful renewal. Understanding these common problems can save you time and help you maintain your website's security. Here are a few issues you might encounter:

  • Domain Validation Failures: Let's Encrypt needs to validate your domain before issuing or renewing a certificate. If your domain's DNS settings are incorrect or if the server isn't reachable, the renewal process will fail.
  • Rate Limits: Let's Encrypt enforces rate limits on certificate issuance. If you attempt to renew too frequently (more than five times per week for the same domain), you will hit this limit. Check your current status using the command:
certbot certificates
  • Expired Certificates: If your certificate has expired, you may need to address any configuration issues before you can renew. Ensure that your web server is correctly configured to serve the challenge files required for validation.

By being aware of these issues, you can take preemptive measures to ensure a smooth renewal process.

Automating Let's Encrypt Renewal with Systemd Timers

While many users rely on cron jobs for automating the renewal of Let's Encrypt certificates, systemd timers offer a more modern and flexible approach. This method allows for more precise scheduling and better integration with systemd services.

To set up a systemd timer for renewing your Let's Encrypt certificates, follow these steps:

  1. Create a new service file:
[Unit]
Description=Renew Let's Encrypt Certificates

[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --post-hook "systemctl reload nginx"
  1. Save this file as /etc/systemd/system/certbot-renew.service.
  2. Now create a timer file:
[Unit]
Description=Run Certbot Renewal Daily

[Timer]
OnCalendar=*-*-* 3:00:00
Persistent=true

[Install]
WantedBy=timers.target
  1. Save this as /etc/systemd/system/certbot-renew.timer.
  2. Finally, enable and start the timer:
sudo systemctl enable certbot-renew.timer
sudo systemctl start certbot-renew.timer

This setup will automatically attempt to renew your certificates every day at 3 AM. If the renewal is successful, it will reload your Nginx server to apply the changes.

CertificateExpiry, issuer, domains (SAN)
ChainIntermediate and root CA validation
TLS ProtocolTLS version and cipher suite
VulnerabilitiesHeartbleed, POODLE, weak ciphers

Why teams trust us

TLS 1.3
supported
Full
CA chain check
<2s
result
30/14/7
days-to-expiry alerts

How it works

1

Enter domain

2

TLS chain verified

3

Expiry date & vulnerabilities

What Does the SSL Check Cover?

SSL/TLS is the encryption protocol that protects data between the browser and server. Our tool analyzes the certificate, chain of trust, TLS version, and knownvulnerabilities.

Certificate Details

Issuer, validity period, signature algorithm, covered domains (SAN), and validation type (DV/OV/EV).

Chain of Trust

Full chain verification: from leaf certificate through intermediates to root CA.

TLS Analysis

Protocol version (TLS 1.2/1.3), cipher suites, Perfect Forward Secrecy (PFS) support.

Expiry Alerts

Set up a monitor — get Telegram and email alerts 30/14/7 days before expiration.

DV vs OV vs EV Certificates

DV (Domain Validation)
  • Confirms domain ownership only
  • Issued in minutes automatically
  • Free via Let's Encrypt
  • Suitable for most websites
  • Most common certificate type
OV / EV
  • Organization (OV) or Extended Validation (EV)
  • Issued in 1-5 business days
  • Costs $50 to $500/year
  • For finance, e-commerce, government sites
  • Increases user trust

Who uses this

DevOps

SSL certificate monitoring

Security

TLS config audit

SEO

HTTPS as ranking factor

E-commerce

customer trust

Common Mistakes

Expired certificateBrowsers block sites with expired SSL. Set up auto-renewal or monitoring.
Incomplete certificate chainWithout intermediate CA, some browsers and bots cannot verify the certificate.
Mixed content on HTTPS siteHTTP resources on an HTTPS page — the browser lock icon disappears, reducing trust.
Using TLS 1.0/1.1Legacy TLS versions have known vulnerabilities. Use TLS 1.2+ or 1.3.
Domain mismatch in certificateThe certificate must cover all site domains, including www and subdomains.

Best Practices

Set up auto-renewalLet's Encrypt + certbot with cron — certificate renews automatically every 60-90 days.
Enable HSTSStrict-Transport-Security header forces browsers to always use HTTPS.
Use TLS 1.3TLS 1.3 is faster (1-RTT handshake) and safer — legacy ciphers removed.
Monitor expiration datesCreate a monitor on Enterno.io — get notified well before expiration.
Verify chain after renewalAfter certificate renewal, confirm that intermediate certificates are installed.

Get more with a free account

SSL certificate monitoring, check history and alerts 30 days before expiry.

Sign up free

Learn more

Frequently Asked Questions

Signup required?

No for quick check. For continuous monitoring — free account.

Try the live tool that powered this guide

Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.