An expired certificate is one of the most embarrassing ways for a website to break. One morning the site is fine, and the next every visitor gets a full-screen browser warning. The cause is a date that was printed inside the certificate all along. The expiry was knowable months in advance, if anyone had looked.
The date is not hidden, and you do not need command-line tools to read it. Every certificate carries its validity window in plain fields. This guide shows how to check it with the free SSL Certificate Decoder on Ovatly: where to copy the certificate from, which fields to read, and how to confirm you are looking at the certificate your site actually serves.
Contents
- Quick answer
- What the expiry date actually is
- Where to get the certificate text
- How to check the expiry, step by step
- Worked example: reading a test certificate
- Confirm it is the certificate your site serves
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the SSL Certificate Decoder, paste your certificate in PEM format (the text from BEGIN CERTIFICATE to END CERTIFICATE, copied from your host's panel or from the .pem or .crt file), and read two things: the validity dates and the status for today. The later date, the not-after date, is the expiry. Then compare the SHA-256 fingerprint the decoder shows with the fingerprint in your host's panel or your browser's certificate viewer. If they match, you decoded the certificate your visitors receive, and its expiry date is the one that matters.
What the expiry date actually is
A certificate is valid between two dates: a not-before date, when it starts working, and a not-after date, when it stops. Between those dates browsers accept it, subject to their other checks. After the not-after date they refuse it, and visitors see a warning instead of your site. There is no grace period.
The decoder shows both dates and does the comparison for you with a status for today: valid, expired, or not yet valid. The rest of the display supports it: the subject says who the certificate was issued to, the issuer says who issued it, the serial number identifies this specific certificate, and the subject alternative names list the domains it covers. A renewal replaces the certificate with a new one, new serial number and new dates, which is why checking again after a renewal is worthwhile.
Where to get the certificate text
You need the certificate in PEM format: a block of base64 text wrapped in header and footer lines. Your hosting panel has an SSL or TLS section that shows the certificate, usually with a copy button or a download. Or the certificate lives on the server as a file with a .pem or .crt extension.
Copy the whole block, header and footer included. If those lines were stripped by whatever you copied from, the bare base64 body also works. One firm warning: never paste a private key. Key files often sit next to certificate files with similar names, and they are secret. The decoder needs only the certificate, which is a public document your server hands to every visitor anyway. If your file contains several certificates stacked together (a chain file), only the first is decoded, so paste the leaf on its own if you need a specific one.
How to check the expiry, step by step
- Copy the certificate in PEM format from your host's panel or from the .pem or .crt file, header and footer lines included.
- Open the SSL Certificate Decoder and paste the text in.
- Read the dates and the status for today. The not-after date is the expiry, and the status tells you whether today is inside the window.
- Check the subject and the subject alternative names to confirm this certificate covers your domain.
- Compare the SHA-256 fingerprint with the one your host or browser shows, to confirm you decoded the certificate your site serves.
Worked example: reading a test certificate
Suppose you paste a self-signed test certificate from an internal server. The decoder shows you the full picture in one pass:
Subject: C=US, ST=California, L=San Francisco, O=Example Corp, OU=Web Team, CN=example.com
Issuer: C=US, ST=California, L=San Francisco, O=Example Corp, OU=Web Team, CN=example.com
Signature algorithm: sha256WithRSAEncryption
Public key: RSA, 2048 bits
Subject alternative names: DNS example.com, DNS www.example.com, IP 93.184.216.34
Two things stand out. Subject and issuer are identical, the mark of a self-signed certificate: Example Corp issued this to itself, and no outside authority vouches for it. And the coverage is explicit: example.com, www.example.com, plus one IP address. For the expiry check you then read the two validity dates and the status for today on the same screen. If the status says valid and the not-after date is months away, this certificate is not your problem. If it says expired, or the date is next week, you have found the job to do.
Confirm it is the certificate your site serves
Panels and folders accumulate certificates: last year's, the staging one, the one for the other domain. Reading the wrong file's expiry tells you nothing. The check against that mistake is the SHA-256 fingerprint, a hash computed from the exact bytes of the certificate. No two certificates share one.
Your browser's certificate viewer shows the fingerprint of the certificate the site actually served, and your host's panel shows the installed certificate's fingerprint. Compare either with the fingerprint the decoder computed from your paste. If they match, the dates you read belong to the certificate in production. If they differ, you decoded a different file, and the real expiry is still unknown.
Limitations and honest tradeoffs
Decoding is display only. The chain of trust is not verified: a certificate can decode beautifully and still be untrusted because its issuer is unknown to browsers. The signature is not checked. Revocation is not consulted, so a revoked certificate still shows good-looking dates.
The parser is also deliberately minimal. It reads the standard X.509 version 1 to 3 fields listed above and the subject alternative names extension. Unusual extensions are not interpreted, and only the first certificate in a paste is decoded. Treat the tool as a fast, private way to read what a certificate says, which is exactly what an expiry check asks, not as an audit of whether the certificate deserves trust.
Common mistakes
- Pasting the private key. Key files sit beside certificate files and look similar. The certificate is public and safe to paste; the key is secret and is never needed here.
- Checking the wrong file. An old certificate in a downloads folder has an old expiry. Compare the SHA-256 fingerprint before you believe the dates.
- Reading the not-before date as the expiry. The window has two ends. The expiry is the later one, the not-after date.
- Pasting a whole chain and reading the wrong certificate. Only the first certificate in the text is decoded. Paste the one you care about on its own.
- Assuming valid dates mean a valid certificate. Dates are one condition. Trust, signature and revocation are checks this tool does not perform.
FAQs
Where do I find my certificate in PEM format? Look in your hosting panel's SSL section, or in the .pem or .crt file on your server. Copy the whole block from BEGIN CERTIFICATE to END CERTIFICATE. If those lines were stripped along the way, the bare base64 body also works.
What does the status for today mean? The decoder compares today's date with the certificate's validity window and tells you whether the certificate is currently valid, already expired, or not yet valid, so you do not have to work out from the two dates whether today falls inside the window.
I pasted a file containing several certificates. Which one was decoded? Only the first one. In a chain file that is usually the leaf certificate for your own domain, the one whose expiry matters day to day. To read an intermediate, paste it on its own.
My certificate's dates are valid, so my site is secure, right? Not necessarily. Decoding is display only: the chain of trust is not verified, the signature is not checked and revocation is not consulted. A certificate can show perfectly good dates and still be untrusted by browsers.
Is it safe to paste my certificate into an online tool? Certificates are public documents: your server sends yours to every visitor, and the decoding here runs locally in your browser anyway. What you must never paste anywhere is a private key. The decoder needs only the certificate and will reject a key block.
Conclusion
An expiry check takes about a minute: paste the PEM text, read the not-after date and the status for today, and match the SHA-256 fingerprint so you know the answer belongs to the certificate in production. Do it when a certificate is installed, again after every renewal, and whenever a browser warning mentions dates. The SSL Certificate Decoder runs entirely in your browser. If your maintenance round also involves moving content between systems, our guide to converting a blog post from HTML to Markdown for a new CMS covers the content side of a migration. For more guides in this series, see our Website and Webmaster Tools guides.
References
- MDN Web Docs, on Transport Layer Security and the role certificates play in it: https://developer.mozilla.org/en-US/docs/Web/Security/Transport_Layer_Security
- Let's Encrypt, on how certificates are issued and renewed: https://letsencrypt.org/how-it-works/