Certificate expiry — what to check 30 and 7 days out
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.
| State | Rule | Display |
|---|---|---|
| valid | more than 30 days | green badge, D-N |
| within 30 days | 8–30 days | amber badge |
| within 7 days | 0–7 days | red badge |
| expired | NotAfter passed | red badge, D+N |
| not yet valid | before NotBefore | grey 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
- Confirm who renews and whether it is automated (ACME) or manual.
- Check that the new SAN covers every domain and wildcard in use.
- Check that intermediates are included in the chain; the root usually is not sent.
- List every place that terminates TLS: servers, load balancers, CDNs, mail servers.
- After deployment, compare the externally visible fingerprint with the new certificate.
The 7-day checklist
- Confirm the renewal log has no failures.
- For DNS-01 challenges, check DNS API permissions and propagation delay.
- If OCSP stapling is used, confirm the server refreshed its response.
- Check that mobile apps, internal systems and old clients trust the new chain.
- If expiry falls outside working hours, agree who is on call.
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 checkerThis article follows RFC 5280 and the CA/Browser Forum Baseline Requirements.