How to monitor SSL certificate expiry across many domains
Expired certificates remain one of the most common self-inflicted outages, and they are entirely preventable. The hard part is not any single certificate, it is keeping track of dozens of them across domains, subdomains, and services that different teams own.
Why expiry still bites in the age of automation
Automated issuance was supposed to end expiry outages, and for simple sites it mostly has. But the renewals quietly fail in the gaps: a host where the renewal cron broke, an internal service nobody automated, a load balancer with a manually uploaded certificate, or a domain whose validation method stopped working. Automation covers the happy path; the outages live in the exceptions.
The 2025 move toward shorter certificate lifetimes makes this sharper. The industry is heading for certificates that live around 47 days rather than a year, which means a renewal path that runs a handful of times a year now has to run every few weeks. A process that fails silently once a year fails silently far more often when the window shrinks, so monitoring stops being optional.
What to watch, beyond the date
The expiry date is the headline, but a useful check also surfaces:
- Days remaining, so you can act on a threshold (renew at 30 days, alert at 14) rather than on the day itself.
- Chain completeness, because a renewed leaf with a missing intermediate fails just as hard as an expired one.
- Hostname match, in case a certificate was renewed for the wrong set of names.
- The issuing CA, to catch a host that silently fell back to a self-signed or untrusted certificate.
- The signature algorithm, to spot a legacy certificate still using something a modern client will soon distrust.
Checking one host from the command line
For a single endpoint, OpenSSL tells you the expiry in one line:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -enddate
That returns notAfter=.... To turn it into a pass or fail against a threshold, openssl x509 -checkend 2592000 exits non-zero if the certificate expires within 30 days (2592000 seconds), which is enough to drive a shell alert.
The catch is scope. One command per host does not scale to an estate of fifty services, and the hosts most likely to lapse are exactly the ones no one remembers to check.
Building a monitoring cadence
A workable policy has three tiers rather than a single date:
| Days remaining | Action |
|---|---|
| 30 | Renewal should have run; verify it did |
| 14 | Alert the owning team, treat as a ticket |
| 7 | Escalate, this is now an incident risk |
| 0 | Outage |
The point of the early tiers is that renewal is not instant. A certificate that needs manual DNS validation or a change-approval window cannot be fixed in the last hour, so the useful alert fires days before, not on the morning of.
Finding the hosts you forgot
The certificates that cause outages are the ones not on your list. Two sources help you find them. Certificate Transparency logs record every publicly trusted certificate ever issued for your domain, including subdomains, which is the fastest way to surface a forgotten staging or legacy host. A regular sweep of the hostnames you do know about then confirms each is current.
Checking in bulk
Checking one host is easy; the value is checking your whole estate in one pass so nothing slips through. The Bulk SSL Checker inspects up to twenty hosts at once and reports expiry, days remaining, chain status, and trust for each. For a deeper look at any single certificate it flags, the how to read an SSL certificate guide explains every field, and to discover hosts you did not know existed, see Certificate Transparency logs.