ARCH-Insight ARCH-Insight
monitoring · TLS · SSL certificates

SSL certificate expiry — how to never miss it again

Published

Also available in: Deutsch, 日本語

When a TLS ("SSL") certificate expires, every visitor gets a full-page browser warning, API clients refuse to connect, and your site is effectively down — even though the server is running perfectly. It is one of the most avoidable outages there is, and it still happens to large companies every year.

This article explains why certificates expire unnoticed even with auto-renewal, how to check an expiry date yourself, and how to get warned in time.

Why auto-renewal is not enough

Let's Encrypt and most hosting platforms renew certificates automatically. Expiry outages happen anyway, because:

  • Renewal fails silently. A changed DNS record, a firewall rule, or a moved web root breaks the validation challenge, and the renewal job logs an error nobody reads.
  • The certificate renewed, but the server didn't reload. The new file is on disk; the web server still serves the old one.
  • Forgotten hosts. A staging domain, an old API subdomain, a mail server or a load balancer that someone set up by hand years ago.
  • Shorter lifetimes. Certificates are getting shorter-lived (Let's Encrypt certificates last 90 days, and the industry is moving lower), so there are more renewals that can fail.

The only reliable signal is to check the certificate the server actually presents, from outside, regularly.

Check an expiry date yourself

From a terminal:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -enddate

This prints notAfter=... — the date the certificate the server presents expires. In a browser, click the padlock and open the certificate details.

That works once. To never miss it, the check has to run by itself.

What a good warning looks like

  • Check every host that serves TLS, not just the main site: subdomains, APIs, admin panels.
  • Warn early enough to act: 14–21 days before expiry gives time to fix a broken renewal; a warning 2 days ahead only gives time to panic.
  • Use the presented certificate, not the file on disk — that catches the "renewed but not reloaded" case.
  • Treat it as medium urgency: it does not need to wake anyone up, but it must reach a person, not a log.

Doing this with ARCH-Insight Monitor

Every HTTPS health check in Monitor reads the certificate the server presents and records how many days it has left. Set "Cert expiry warn (days)" on a check — anything from 1 to 365 — and when the remaining days fall to that number, Monitor opens a medium alert, "TLS certificate expiring soon", with the days left and a recommendation to renew. It arrives by email, push, SMS, Slack or Teams like any other alert, and repeats are grouped so you get one message, not one a minute.

The same check also watches the status code, the response content and response time, so one check per host covers availability and the certificate together. Nothing needs to be installed for it, and the free plan has no limit on checks. See also what else to monitor as a small team.

Hear about it before your users do.

Start free with one URL to check. The collector can come later.

Related articles