Certificate expiry check
How do you find out when a certificate expires, and how far ahead should you watch?
Short answer
The expiry date is part of the certificate, so it can be read with one TLS connection — without access to the server and without the hosting provider’s help. Tegmia reads it on every run and counts the remaining days from it. The thresholds depend on how long the certificate was issued for: when less than a quarter of its validity remains (at most 30 days), it is a low finding, below one eighth (at most 14 days) a high one, and after expiry a critical one. Automatic renewal usually happens with about a third of the validity left, so with a daily check a healthy certificate never reaches the first threshold — not even the 64-day certificates Let’s Encrypt issues from 10 February 2027.
Part of the check Certificate and TLS.
What it is
A certificate has a fixed validity window. After it ends, the browser refuses the connection and shows a warning page — regardless of the server being fine and nobody having stolen the key.
Most HTTPS outages happen not because nobody thought about renewal, but because automatic renewal fails silently: a redirect changes, the validation path disappears, the DNS permission expires. Nobody finds out, because while the certificate is valid nothing reports anything.
Certificate validity is also getting shorter. Under the CA/Browser Forum plan the maximum validity drops in steps; from 15 March 2027 it is to be 100 days (as of 22 October 2026). That makes manual renewal unsustainable and automatic renewal a necessity.
On top of that, on 4 June 2025 Let’s Encrypt stopped sending e-mails about upcoming expiry. Anyone who relied on that e-mail to watch renewal was left without a watch, and often does not know it.
How Tegmia measures it
What the check actually does, with the thresholds at which it reports a finding.
- From the certificate read during the TLS connection we take valid from and to, and count the remaining calendar days in Prague time (Central European Time).
- After the end of validity: tls.cert_expired, critical severity. The evidence holds the expiry date and how many days have passed since.
- Less than one eighth of the validity period, at most 14 days: tls.cert_expiring_soon, high severity. For a 90-day certificate that is below 11 days, for a 64-day one below 8 days.
- Less than one quarter of the validity period, at most 30 days: tls.cert_expiring_30d, low severity. For a 90-day certificate below 22 days, for a 64-day one below 16 days, for a one-year one below 30 days. It is a heads-up, not an alarm — it should give you a reason to check that renewal will happen by itself.
- Where the check runs only once every 30 days (the free plan), the low finding starts earlier: when fewer than 30 days remain, or for a certificate shorter than 60 days, less than half of its validity. Without that, the check could skip the whole warning period between two runs and speak up only after expiry. For certificates of 60 days and longer this then happens only rarely, in about 2 to 3 % of cases. For shorter ones it is not enough: the warning period is shorter than the gap between runs, and for a 45-day certificate it falls between two runs in roughly three cases out of ten. Such a certificate needs checking more often than once every 30 days. The price is that even a healthy certificate sometimes gets a low finding before it renews itself.
- When the start of validity cannot be read, 30 and 14 days apply. The evidence holds the validity period and both thresholds, so you can see why the finding appeared just now.
- The findings are graded on purpose. E-mail alerts go out only for new critical and high findings: you get no e-mail at the first threshold, you do at the second.
What this does not measure
- We cannot see into your automatic renewal. We notice that the end of validity is approaching, not that renewal has failed.
- We do not check certificates on ports other than 443, nor on subdomains that are not in the account separately.
The findings this can lead to
Straight from the catalogue. You will see the same text in the report.
The certificate is no longer valid
Criticaltls.cert_expired · Certificate and TLS
Browsers show a warning page on such a site. Most customers leave, and payments through it will not go through.
What to do: Renew the certificate with your hosting provider or switch on automatic renewal (ACME / Let’s Encrypt). After renewing, check that the new certificate has been deployed to every server behind the load balancer.
Default severity critical: Deal with it now. The flaw can be exploited from outside or is already breaking the service. The full rule in the catalogue
The certificate expires in less than 14 days
Hightls.cert_expiring_soon · Certificate and TLS
If automatic renewal fails, the site will stop working within two weeks. Most HTTPS outages happen exactly this way.
What to do: Check that automatic renewal is running and has access to the domain. If you renew the certificate by hand, plan the renewal before the end of this week.
Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue
The certificate expires in less than 30 days
Lowtls.cert_expiring_30d · Certificate and TLS
Nothing urgent yet. It is, however, a good moment to check that renewal will happen on its own.
What to do: Check that automatic renewal works. No immediate action is needed.
Default severity low: Fine-tuning. No immediate risk; fixing it improves the overall picture. The full rule in the catalogue
The certificate is in order
Informationtls.ok · Certificate and TLS
A valid certificate from a trusted authority that matches the domain.
What to do: Nothing to do. We keep watching the expiry date.
Default severity information: Just a fact we found about your setup. It is not a fault. The full rule in the catalogue
A typical misconfiguration
A certificate renewed by hand, in one person’s calendar. It works until that person is on holiday, ill or busy with other work — and as validity gets shorter, the date comes round several times a year instead of once.
The second situation: automatic renewal is set up, but the validation path “/.well-known/acme-challenge/” was closed because a redirect changed on the website or protection was switched on. Renewal has failed ever since, and because nobody checks it, it only shows when the warning page appears.
How to fix it
Specific steps, in the order in which they make sense.
- 01Find out how the certificate is renewed and who is responsible for it. If the answer is not one name or one service, that is the first thing to fix.
- 02Turn on automatic renewal via ACME where your hosting allows it. With managed hosting it is usually one tick box.
- 03Make sure renewal has a way through: the path “/.well-known/acme-challenge/” must not be redirected or blocked, and with DNS validation the access to the domain’s DNS must be valid.
- 04Test a dry-run renewal, outside the last week of validity. The only reliable test of renewal is a renewal.
- 05Deploy the new certificate on every server that serves the domain, and then check what the server actually sends.
- 06Have the remaining days watched from outside, independently of the system that does the renewal. A watchdog inside the same box breaks down along with it.
Check it on your own domain
We read only what the domain has published.
The scan reads the domain’s public records and configuration and shows the result of this check for you, including the evidence we based it on.
Situations this answers
- Our certificate has expired
How to get the website working again, why renewal most often fails and how to set up monitoring so that it does not happen again.
- The browser says the certificate is not trusted
Four different causes of a certificate warning, how to tell them apart and what each one means for the visitors of a website.
Related checks
What goes with it and is usually done together.
- SSL certificate check
What one TLS connection reveals about a certificate: the issuer, the domain names, the key strength and the protocol version.
- CAA record check
CAA says which authority may issue a certificate for your domain. How we read the record and how to set it.
Last updated 3 November 2026. We write this page by hand and correct it when what we measure changes. Found a mistake? Tell us via the contact page.