opyeb pemcheck

pemcheck · Operations

Certificate expiry — what to check 30 and 7 days out

Operations · 5 min read

The short answer

A certificate stops being valid when NotAfter passes. Without automation, start renewal 30 days before and confirm at 7 days before that the server really serves the new certificate. This tool counts the days and shows valid / within 30 days / within 7 days / expired.

How the countdown is computed

NotAfter is written in UTC. For example 2027-06-30T00:00:00Z is 09:00 on 30 June 2027 in Korea. The remaining days are the difference from now divided by 24 hours and rounded up, so the exact times are shown alongside to avoid a false “one day left” display.

StateRuleDisplay
validmore than 30 daysgreen badge, D-N
within 30 days8–30 daysamber badge
within 7 days0–7 daysred badge
expiredNotAfter passedred badge, D+N
not yet validbefore NotBeforegrey badge

Expired, yet the site still loads

Browsers combine the certificate the server sends with the operating system trust store. With a trusted root and a correct chain, an expired leaf may only produce a warning. HSTS preload, a user exception or a corporate proxy can change the outcome. Loading is not the same as being valid.

When diagnosing expiry, look at the NotAfter of the certificate the server actually sends, not just the padlock. Behind a load balancer, only some backends may have the new certificate.

The 30-day checklist

  1. Confirm who renews and whether it is automated (ACME) or manual.
  2. Check that the new SAN covers every domain and wildcard in use.
  3. Check that intermediates are included in the chain; the root usually is not sent.
  4. List every place that terminates TLS: servers, load balancers, CDNs, mail servers.
  5. After deployment, compare the externally visible fingerprint with the new certificate.

The 7-day checklist

Time zones and clock skew

Validity is compared in UTC, so the server's time zone does not matter. But a clock a few minutes off can fail validation just after NotBefore or just before NotAfter. Check NTP synchronisation, and confirm the renewal job runs before expiry rather than after.

The countdown here uses the browser's current clock. If the device clock is wrong, the number is wrong too.

Questions

Is the countdown based on Korean midnight?

No. It is the difference between NotAfter and now, rounded up in 24-hour units. Both UTC and KST times are shown so you can see the exact boundary.

Can it parse an expired certificate?

Yes. Expiry is a label, not a parsing block. You can still read the subject, SAN and fingerprint of an expired certificate to see what is left.

If renewal is automated, do I still need the countdown?

Automation fails too. Failed renewals, missed deployments and wrong chains are common, so keep D-30 and D-7 alerts plus a post-deploy fingerprint check.

Paste a certificate to see the remaining days and state badge immediately.

Open the checker

This article follows RFC 5280 and the CA/Browser Forum Baseline Requirements.