SSL Certificate Decoder · Tutorial
How to check a certificate's expiry date and domain names
5 min readbeginnerUpdated
A browser warning, an expiry reminder or a new subdomain makes you wonder exactly what your certificate covers and how long it has left. This tutorial decodes a certificate and walks through the fields that matter most, which are expiry, alternative names and issuer, using a sample certificate.
What you need
- The SSL Certificate Decoder
- The certificate in PEM format (the Try it button loads a sample)
Steps
Get the certificate
Export it from your browser (padlock → certificate details → export as PEM), copy it from your server's configuration, or run
openssl s_client -connect yourdomain.com:443 -showcertsand copy the first block.Paste it and read the badges
Paste the whole block, including the BEGIN and END lines. Badges summarise the status. The sample shows Valid for … more days, Self-signed and Certificate authority (CA), because it was created for testing and signs itself.
Check the expiry
Read Valid until. Certificates from public authorities now last a few months at most, so automatic renewal matters. The badge turns amber within 30 days of expiry.
Check the domain names
Read Alternative names. The sample covers
shop.example.com,www.shop.example.comand the IP address192.0.2.10. If a domain you serve is missing here, browsers show a warning for it, even if it matches the common name.DNS:shop.example.com DNS:www.shop.example.com IP:192.0.2.10Check the issuer and fingerprint
For a public website, the issuer should be a known certificate authority, not the same as the subject. To confirm two copies are the same certificate, compare the SHA-256 fingerprints.
Try it yourself
Opens the SSL Certificate Decoder with this tutorial's sample loaded.
Common mistakes
- Checking only the common name
- Browsers ignore the common name when alternative names are present. Always check the SAN list.
- Missing intermediate certificates
- A valid certificate can still fail if the server doesn't send the intermediate certificates. Check the whole chain your server sends, not just your certificate.
- Pasting the private key
- Only the certificate is needed. The key stays on the server.
Next steps
Go back to the SSL Certificate Decoder, or keep going with one of these:
FAQ
Can this tool check a live website's certificate?
Not directly. Fetching a certificate from a URL needs a server, so paste the certificate instead.