Some links on this page are affiliate links. If you sign up through one, Rigcheck may earn a commission at no cost to you. It doesn't change what this guide recommends. How we handle this.
An expired certificate takes your site down for everyone at once: browsers show a full-page warning and most visitors leave. It almost never happens because nobody set up renewal. It happens because renewal stopped working and nobody noticed.
That's easier to miss than it used to be. As of November 2026, new certificates last at most 200 days, falling to 100 days in March 2027 (what changed). And Let's Encrypt stopped sending expiry reminder emails on June 4, 2025, so if you relied on those, nothing warns you any more. This guide covers the ways to monitor expiry yourself, and how to set them up so they only alert you when something is actually wrong.
What to monitor
- The certificate your visitors actually get. Check the live site, not the file on your server. A renewed certificate that the web server never reloaded still leaves the old one in front of visitors.
- Every hostname. The main site,
www, the API, the shop, the status page, admin panels, and the mail server. Each can have its own certificate and its own renewal. - Every place a certificate is installed. A certificate copied to a load balancer, a CDN and a server has to be replaced in all three.
When an alert should fire
Automatic renewal starts well before expiry. By default, Certbot renews a 90-day Let's Encrypt certificate once about 30 days are left, and Cloudflare starts renewing its edge certificates 30 days before they expire (as of November 2026). So a healthy certificate managed this way never gets much below its renewal point.
That renewal point is moving. Let's Encrypt is shortening its certificates: 64 days from February 10, 2027, then 45 days from February 2028. It asks clients to renew about two-thirds of the way through a certificate's life, which is about 30 days before expiry today, about 21 days on a 64-day certificate and about 15 on a 45-day one.
So don't pick a fixed number. Find the point where your certificate normally renews, and set your first alert a week after it. Then the alert stays quiet while renewal works, and fires only when renewal has had a week to happen and hasn't:
| Certificate | Renews with about | First alert at |
|---|---|---|
| 90 days (Let's Encrypt today, Cloudflare's edge certificates) | 30 days left | 23 days |
| 64 days (Let's Encrypt from February 10, 2027) | 21 days left | 14 days |
| 45 days (Let's Encrypt from February 2028) | 15 days left | 8 days |
Add a second alert about 3 days before expiry in case the first one is missed. If you're not sure when yours renews, the SSL certificate checker shows who issued it and how long it lasts. For other certificate authorities, your renewal tool's settings say how many days before expiry it renews.
For a certificate you renew by hand, alert earlier, at 30 days and again at 14: you need time to order, validate and install it.
Ways to monitor
1. Check by hand
For one site, or to confirm something after a renewal, run your domain through the SSL certificate checker. It shows the expiry date and days left, and flags a renewal that may be failing: when the newest certificate in public logs expires within two weeks and no replacement has been issued.
From a computer, this prints the expiry date of the certificate a server is serving right now:
echo | openssl s_client -connect yourdomain.com:443 -servername yourdomain.com 2>/dev/null | openssl x509 -noout -enddateChecking by hand only works if you remember to do it, so use it alongside one of the options below, not instead of them.
2. A script on a schedule
If you run a server, a short script can check every hostname each day and print a warning only when a certificate is close to expiry. openssl x509 -checkend takes a number of seconds and fails if the certificate expires within that time. Set DAYS to your first alert from the table above:
#!/bin/sh
# Warn when a certificate expires within DAYS days, or can't be read at all.
# DAYS = a week after your normal renewal point (23 for 90-day certificates).
DAYS=23
for host in yourdomain.com www.yourdomain.com api.yourdomain.com; do
if ! echo | openssl s_client -connect "$host:443" -servername "$host" 2>/dev/null \
| openssl x509 -noout -checkend $((DAYS * 86400)) >/dev/null 2>&1; then
echo "Certificate for $host expires within $DAYS days, or couldn't be checked"
fi
doneWhen Let's Encrypt moves to 64-day certificates in February 2027, change DAYS to 14, or the script will warn about certificates that are fine.
Save it as /usr/local/bin/check-certs.sh, make it executable with chmod +x, and run it daily from cron (crontab -e):
17 8 * * * /usr/local/bin/check-certs.shCron emails any output to the account owner when the server can send mail. If yours can't, send the output wherever you already get alerts.
For a mail server, check the certificate it offers on the SMTP port instead:
echo | openssl s_client -starttls smtp -connect mail.yourdomain.com:25 -servername mail.yourdomain.com 2>/dev/null | openssl x509 -noout -enddate3. Certificate transparency alerts
Every publicly trusted certificate is recorded in public certificate transparency (CT) logs when it's issued. Monitoring services watch those logs for your domains and email you when a new certificate appears; some also warn you when one is about to expire with no replacement. Rigcheck's checker reads the same logs.
A CT alert tells you a renewal was issued; it can't tell you the server actually installed it. It also tells you when a certificate is issued for your domain that you didn't ask for, which is worth knowing. Pair it with a check of the live site.
4. An uptime monitor with SSL checks
An outside monitoring service checks your site from its own servers every few minutes and alerts you by email, text or an app. Many also read the certificate the site serves and warn you before it expires, which covers the "renewed but never installed" case that CT alerts miss. Because it runs elsewhere, it keeps working when your server doesn't.
Check what each plan includes before relying on it. Some services keep SSL expiry checks for paid plans and only check that the site responds on the free one. Setting up UptimeRobot walks through a first monitor and its alerts.
When an alert fires
- Check the live certificate with the SSL certificate checker. If a new certificate shows up in the logs but the site still serves the old one, renewal worked and the server wasn't reloaded: reload or restart the web server, and update any other place the certificate is installed.
- If no new certificate was issued, try renewal by hand. With Certbot:
sudo certbot renew --dry-runshows the error without changing anything. Common causes are a changed DNS record, a firewall blocking the validation request, or a moved server. - Check your CAA records. If they don't list your certificate authority, it isn't allowed to issue. The SSL checker shows them.
SSL certificates now last 200 days covers setting up and testing automatic renewal in more detail.
Questions people ask
Doesn't my certificate authority warn me?
Many paid certificate authorities and resellers send renewal reminders, but they go to whoever placed the order, often someone who has since left. Let's Encrypt no longer sends them at all.
My host or Cloudflare manages the certificate. Do I need this?
Less, but a simple check is still worth having. Managed renewal can fail when DNS changes or a domain is moved, and an outside check is how you'd find out before your visitors do.
How often should the check run?
Once a day is plenty for expiry. With the first alert a week after your renewal point, a daily check still gives you at least a week of warning.