SSL Certificate Monitoring: Checks Beyond Expiry Dates

SSL Certificate Monitoring: Checks Beyond Expiry Dates

The standard advice for SSL certificate monitoring is to set a reminder 30 days before expiry. That advice describes a file on disk. It does not describe the certificate a client receives.

A monitor built on expiry dates alone can stay green while every connection to a hostname fails. The leaf can be unexpired and still be the wrong certificate, served without its intermediate, or missing the name the client asked for. None of those conditions show up in a notAfter field.

The object worth monitoring is the certificate in the handshake.

Table of Contents

Why an Expiry Date Is Not Enough

An expiry date answers one question. It tells you when a certificate stops being valid. It does not tell you whether a client gets a working certificate right now, and a monitor that reads only notAfter can stay green while connections fail.

Three failures leave the date untouched.

The wrong certificate comes back. A client connects without SNI, or to a bare IP, and the server hands over its default certificate for another name. The date is fine. The name is wrong.

The leaf arrives without its intermediate. The chain file is incomplete, so clients report unable to get local issuer certificate because they can't build a path to a trusted root.

The hostname isn't in the SAN list. The certificate is valid, issued to the right organization, but doesn't cover the name in the request. Verification fails on identity, not on time.

Shortening lifetimes make all three more frequent. Under the CA/Browser Forum baseline requirements, maximum validity for publicly trusted TLS certificates moves from 398 days to 200 days on March 15, 2026, then to 100 days on March 15, 2027, and to 47 days on March 15, 2029. At the final limit, an organization running 1,000 public certificates could face roughly 7,660 renewal events a year, against about 916 under a 398-day cycle. Those limits govern publicly trusted certificates. They don't automatically cover privately issued certificates or every internal PKI.

A professional man with glasses works on his laptop with the text Expiry Date Is Not Enough overlaid.

For each name and port, record the subject and SAN names, the issuer, notBefore and notAfter, the full chain, key type, signature algorithm and the trust result. That set is what a client evaluates.

Practical rule: If a monitor can't tell you the subject and SAN list it saw, it isn't monitoring the certificate. It's monitoring a countdown.

Certificate hygiene is one layer of a wider exposure problem, and cyberattack safeguards for Australian small businesses covers the surrounding website protections that sit next to TLS.

If OpenSSL syntax is unfamiliar, the guide to creating a self-signed certificate with OpenSSL covers the basics rather than repeating them here. The first action is an inventory task: list every public hostname and port clients use, then mark each one that has no named owner.

Building the Endpoint List Before You Test

Clients choose a certificate by the name they request. That single fact breaks most inventories. A check by IP address, or without SNI, can pass while the live site is broken, because the server answers with whatever default it has configured.

Build the list from what clients use, with one row per combination of name, port, node and vantage point.

Name Port Node Vantage point
shop.example.com 443 node-a public
shop.example.com 443 node-b public
api.internal.example 8443 node-c internal

Those rows are illustrative, not real endpoints. Include 443 for web, 8443 for admin consoles, and any mail or API port that terminates TLS. A reverse proxy listening on 443 and forwarding to a backend on 8443 gives you two certificates to track, and only one of them is what a client sees.

A male technician wearing glasses holding a clipboard and inspecting server racks in a data center.

Public scans can't see private names, private CA certificates or self-signed endpoints behind a firewall. The OpenSSL sequence in the next section has to run from a host on the client's network segment, and the vantage point belongs beside every result. A check from the wrong side of a firewall proves nothing about what an internal client receives.

Mutual TLS adds a second side. A server-side check doesn't validate the client certificate, so inventory client certificate files and their expiry dates separately, and test them from the client's position.

A three-node pool where one node missed a renewal still serves the old certificate to part of the traffic. The check against node-a passes and the pool fails.

Hostname correctness starts with resolution, so the guide to monitoring a DNS server covers the layer underneath every certificate check.

Finish by assigning an owner, port, SNI name and vantage point to every row. Each entry needs an accountable team for renewal and reload.

How to Verify the Certificate Clients Receive

Prerequisites and location

Use a shell with OpenSSL 1.1.1 or later, run from a network location that matches the client: outside the network for public names, inside for internal ones. Every step below is read-only and disables no verification.

A five-step instructional diagram explaining how to verify SSL certificates that clients receive from servers.

Set two variables so the commands stay readable:

HOST=example.com
PORT=443

Step 1. Pull the served leaf with SNI.

openssl s_client -connect $HOST:$PORT -servername $HOST </dev/null 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates -ext subjectAltName

Expected result: a subject or SAN list containing the hostname, and a notAfter date in the future. If the subject names another site, stop here.

Step 2. Check the renewal window.

openssl s_client -connect $HOST:$PORT -servername $HOST </dev/null 2>/dev/null \
  | openssl x509 -noout -checkend 1209600

Expected result: no output, exit code 0. Exit code 1 means the certificate expires within 14 days.

Step 3. Verify the chain and hostname.

openssl s_client -connect $HOST:$PORT -servername $HOST \
  -verify_hostname $HOST -verify_return_error </dev/null

Expected result: Verify return code: 0 (ok) near the end of the output. For a private CA, add -CAfile /path/to/ca-bundle.pem.

Reading results per node

Step 4. Repeat per node. Keep -servername $HOST and change -connect to each load balancer, proxy or ingress address. SNI must stay set to the hostname clients request. Drop it and the node may hand back a default certificate, which makes the whole check meaningless.

Step 5. Compare fingerprints.

openssl s_client -connect $HOST:$PORT -servername $HOST </dev/null 2>/dev/null \
  | openssl x509 -noout -fingerprint -sha256

Every node should return the same fingerprint for the same name. A mismatch means a partial rollout.

Record handshake timeouts separately from certificate failures. A timeout is a collection problem, a firewall rule or a protocol mismatch, and it belongs on a different alert path than an expiring certificate. The walkthrough below covers the full sequence end to end.

What the OpenSSL Results Tell You

Reading the verify code

Read the Verify return code line first. Zero means the chain and hostname passed for that handshake. Anything else has a specific cause and a specific next check.

Signal Likely cause Next check
Subject shows another site SNI missing or default certificate returned Repeat with -servername set to the hostname
Verify return code 20 (unable to get local issuer) Intermediate missing or CA bundle not supplied Compare the chain in -showcerts output with the issued bundle
Timeout or no certificate returned Port closed, firewall, or protocol mismatch Check reachability and supported TLS versions from this vantage point

Example output, illustrative only:

Verify return code: 20 (unable to get local issuer certificate)

Here the server sends a leaf without its intermediate. The fix belongs in the server's chain file, not in the expiry date. Nothing about the validity window changed. What changed is whether a client can build a path to a trusted root.

A subject naming another site usually means SNI was missing from the request, or the endpoint falls back to a default certificate when the requested name is unknown. Rerun with -servername set correctly before opening an incident.

One failed handshake can be a network blip. Require the same failure on consecutive runs before treating an alert as real, and a clean result after the fix before clearing it. Keep the states apart, because an expired certificate, a hostname mismatch and an unreachable port have different owners and different fixes.

Revocation is a separate result

Revocation is a condition of its own and needs its own output.

openssl s_client -connect $HOST:443 -servername $HOST -status </dev/null

Look for the OCSP response section. A line reading OCSP response: no response sent means the server isn't stapling a status response. Treat that as a revocation-visibility gap, not an expiry failure. For CRL-based CAs, report a CRL older than the CA's published schedule, or an unreachable distribution point, as a revocation-status alert while the expiry check stays green.

An unexpired certificate is not automatically valid when its revocation status cannot be confirmed.

Log the endpoint, vantage point, verify code and timestamp for every failure. On Linux hosts, the files feeding these handshakes are covered in the guide to certificates in Linux.

Separating Files, Renewal Jobs and Live Certificates

Renewal isn't one event. It's four states, and each needs its own check: the certificate is issued, deployed to every endpoint, served after reload, and trusted by the clients that use it. A fifth check covers the local file.

State Question It Answers Where to Check Common Blind Spot
Local certificate file Is the file valid and paired with its key? Host filesystem and openssl x509 -noout -dates Says nothing about what the service is serving
Issued Did the CA or ACME workflow complete? Renewal job logs and timestamps A successful issue can still skip deployment
Deployed Is the new copy on every endpoint? Each node or appliance configuration Nodes can disagree after a partial rollout
Served What does a handshake return for each name and port? Per-SNI, per-node openssl s_client run Needs the right vantage point for internal hosts
Trusted Does the chain validate against the clients' trust store? Test with the client CA bundle Public and private CAs need different trust checks

A green renewal log proves the issuance step and nothing else. Keep it as evidence, not as the monitor.

Hypothetical example, not a test result: an ACME client reports success and copies the new file to a reverse proxy, but the proxy keeps the old certificate until a reload that a scheduled job never runs. The file on disk looks correct. The served certificate still carries the old notAfter date, and any monitor that reads files stays green.

Add a key-pairing check to the local file state:

openssl x509 -in /etc/ssl/certs/site.pem -noout -pubkey
openssl pkey -in /etc/ssl/private/site.key -pubout

Both outputs must match. The key itself must never be printed to logs or pasted into a ticket.

Name an owner for each deployment location. A certificate present in three places is not the same as one active in three places.

If the file-level side is where the gaps are, how to install an SSL certificate walks through the installation steps on common web servers.

Renewal and Deployment Failure Checklist

Run this in the order a renewal moves, and again whenever a served-certificate check fails. Each row states whether the step is read-only or state-changing, and what a passing result looks like.

Phase Check Type Expected signal
Before renewal Renewal job ran and the new file has a later notAfter Read-only Newer notAfter in openssl x509 -noout -dates
Issuance Chain file matches the leaf; embedded SCTs meet Chrome policy Read-only Two SCTs from distinct logs for 180 days or less, three for longer lifetimes; check with openssl x509 -noout -text
Deployment Same certificate on every node Read-only Identical fingerprint from every node's handshake
Reload Service reloaded after configuration test passes State-changing Configuration test passes and reload runs in an approved window
Served check Handshake per SNI name and node returns the new certificate Read-only New notAfter, correct subject, Verify return code 0
Revocation Stapled OCSP response present and CRL current Read-only OCSP response shown; CRL within the CA's published schedule
Rollback Restore the previous certificate if the new one fails and the old one is valid State-changing, needs approval Dated backup restored, service reloaded, served check repeated
Monitoring health Collection is still running Read-only Collection-failure alert after two missed intervals, not a certificate alert

A checklist table titled Renewal and Deployment Failure Checklist outlining four steps for monitoring SSL certificate renewals.

Short lifetimes raise the stakes on every row. Let's Encrypt describes a transition from 90-day certificates toward 64-day and eventually 45-day certificates, with renewal expected around day 60 for a 90-day certificate and around day 30 for a 45-day certificate. Renewals are exempt from its issuance rate limits, while limits apply to issuance for new domain names or domain groups. A failed renewal job has to alert early, not near expiry.

Chrome's Certificate Transparency policy adds a second post-renewal check. Certificates valid for 180 days or less need SCTs from two distinct qualified log operators, and longer lifetimes need three. A renewal can carry a later expiry date and still fail browser trust if the transparency evidence is missing, so the served chain and its SCT set both need validating after deployment.

State-changing steps

Reload only in an approved window, and only after the server's own configuration test passes. nginx -t and apachectl configtest are the two common gates. A reload that runs before the test passes can take a healthy service down.

Rollback restores a dated backup of a previous certificate that is still valid, and needs approval because it changes state. Keep the previous certificate and key on disk under a dated name before every renewal.

If collection fails for two consecutive intervals, raise a collection-failure alert instead of a certificate alert.

Teams without in-house PKI experience often hand this work off, and SSL installation help for UK businesses is one route to a managed install. Automation helps but doesn't remove the reload step, and the guide to Caddy TLS on demand shows how one server handles issuance and serving together.

Choosing Expiry Thresholds That Fit Your Renewal Window

The thresholds below are an illustrative policy, not a universal guarantee. They turn remaining lifetime into actions, and they assume the renewal window is shorter than the certificate's life.

NIST's TLS server certificate management guidance recommends continuously monitoring expiration dates across the organization, notifying certificate owners at 90, 60 and 30 days before expiry, and escalating when a certificate remains unrenewed within 30 days of expiration.

Remaining Lifetime Illustrative Action Escalate When
90 days Confirm owner and renewal path Not renewed by 60 days remaining
60 days Check renewal job logs and renewal window Renewal failed on two consecutive runs
30 days Notify owner and verify each endpoint serves the current chain Still unrenewed within 30 days of expiry
45-day certificate, day 30 Confirm renewal has completed on every node Renewal not complete by day 30
14 days Page on-call and check every node Any node serves the old certificate
7 days Treat as an incident until the served certificate is new Immediately

A fixed 30-day warning isn't a policy. It's a number that may arrive too late. A 45-day certificate is expected to renew near day 30, so a warning at 30 days remaining leaves no time to act. Alert on the missed renewal instead: the condition is that renewal hasn't completed by day 30, not that the certificate is close to expiry.

Two rules belong on every threshold.

Sustained window. The condition must persist across two consecutive checks before it pages anyone. A single failed handshake is noise.

Recovery logic. The alert clears only after the served certificate shows the new notAfter date on every endpoint, not when the renewal job logs success.

A monitor that cannot reach an endpoint for two intervals should report a monitoring fault, not stay silently green.

Adjust lead times for approval queues, DNS or load balancer propagation, and multi-node deployment. Thresholds protect the renewal workflow. They don't replace it. Getting the check interval right matters as much as the threshold, and monitoring schedules covers how to pick one that catches failures without generating noise.

Start With One Served-Certificate Check

Pick one production hostname with a named owner. One check, one pass condition.

Step 1. Choose a hostname and port that a team already owns. Don't start with the whole inventory.

Step 2. Run the OpenSSL sequence above against that name and record the subject, notAfter and Verify return code.

Step 3. On the uptime monitoring feature page, confirm which certificate fields the monitor reports, whether it sends SNI, and whether it reports chain state or compares nodes. If the page doesn't state a capability, treat it as unsupported and keep the OpenSSL check for that case.

Step 4. Once the first readings match your own OpenSSL output for the same name, test one safe alert. Lower the threshold on a non-production name or use a test check, confirm the notification reaches the owner, then restore the production threshold.

Pass condition: a deliberately broken test endpoint raises the expected alert within the sustained window, and the alert clears after the endpoint is fixed. Fivenines runs HTTPS, TCP, ICMP and DNS checks from multiple regions and tracks SSL certificate expiry alongside response time and availability, with confirmation before alerts reach the team. Check plan limits, monitor counts and notification channels on the current pricing page before scaling, and keep existing monitoring running until the pilot passes.


Expiry tracking is one signal inside a served-certificate check, and Fivenines pairs it with response time and availability from multiple regions so a broken handshake surfaces as an incident rather than a silent countdown. Connect one hostname, confirm the SSL readings match your own OpenSSL output, and route the first alert to the team that owns that endpoint. Start a 14-day trial at Fivenines without a credit card and keep your existing checks running until the new one proves itself.