SSL certificate expiry monitoring explained
An expired certificate turns a working site into a full-page browser warning. It is one of the few outages you can see coming weeks ahead.
Why certificates expire
A TLS certificate (still often called an SSL certificate) binds a domain name to a public key. It is signed by a certificate authority and has a fixed validity period with a start date and an end date. After the end date, browsers and most API clients refuse the connection.
Expiry is deliberate. It limits how long a stolen key or a wrong certificate can be misused. Lifetimes have been getting shorter for years, and browser and certificate authority rules are shortening the maximum lifetime of public certificates further in stages. Shorter lifetimes make manual renewal impractical, so automation and monitoring both matter more.
Why automated renewal still fails
- The renewal job runs, but the web server is not reloaded, so the old certificate is still served.
- A DNS or firewall change breaks the domain validation step and the job fails without anyone noticing.
- A load balancer, CDN or proxy serves its own copy of the certificate, which is renewed separately or not at all.
- A new subdomain was added by hand, outside the automated setup.
- The server that ran the renewal job was replaced, and the job did not move with it.
What a monitor checks
An outside monitor connects like a browser and reads the certificate the server actually presents. That is the key point. It does not trust the renewal log. It sees what visitors see, after every proxy and cache in between.
From that certificate it can read the end date and whether the chain is valid for the name. On HTTPS monitors in Uptimecat you can turn on a certificate expiry notification, and an invalid certificate can mark the monitor down. Details are on the SSL monitoring page.
A routine that works
- List every public hostname that serves HTTPS: main site, www, API, admin, status page and mail web interfaces.
- Add one HTTPS monitor per hostname. A wildcard certificate still needs a monitor per name, because different names can be served by different systems.
- Turn on the expiry notification and send it to a shared channel, such as a team chat room, rather than one person's inbox.
- Make one person responsible for acting on expiry notices.
- After each renewal, confirm the monitor shows the new end date. That confirms the certificate this monitor sees. Check each CDN edge, load balancer and IP address that terminates TLS separately.
Certificate expiry is not domain expiry
A certificate can be valid while the domain registration itself lapses, and then the name stops resolving at all. These are different dates from different systems. Uptimecat has no dedicated domain expiry monitor yet, but domain expiration monitoring shows a safe workaround using a small script and a heartbeat.
Frequently asked questions
How far ahead should I be warned?
Long enough to fix a broken renewal without rushing. Two weeks is a common choice. With automated renewal, a warning means the automation has already failed, so act on it the same day.
Can I ignore TLS errors for internal hosts?
You can, for hosts with self-signed certificates, but it also hides real problems. Do not do it for public sites.
Does this check mail or database TLS?
Expiry alerts apply to HTTPS monitors. For other TLS services, run a small script near the service and report the result with a heartbeat.
Related
Open the dashboard
Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.