SSL certificate decoder
Everything runs in your browser; nothing is sent or stored.
- Paste one certificate or a certificate chain, including the BEGIN and END lines, into the "PEM certificate" field and click "Decode".
- Each certificate gets its own section, in the order in which the certificates appear in the input.
- Below the details of each certificate, the tool shows whether the certificate is valid, along with the number of days until it expires or since it expired. Validity is checked against the device clock, and dates are shown in UTC.
- The "Alternative names (SAN)" row shows all the domains and IP addresses that the certificate covers.
- Blocks of other types in the input, such as a public key, are not decoded, and the message below the "Decode" button shows how many there are.
- The tool only shows what the certificate contains. It does not check the signature, the chain up to a trusted root, or whether the certificate was revoked.
What an SSL certificate contains
An SSL certificate, more precisely an X.509 certificate for the TLS protocol, binds a domain name to a public key and is usually signed by a certificate authority (CA). The "Subject" row states who the certificate was issued to, and the "Issuer" row states the certificate authority that signed it. Browsers check the site name against the subject alternative names (SAN) only, so when the name does not appear in the "Alternative names (SAN)" row, the browser shows a warning even if the name appears in the CN field of the subject.
Certificate chain and intermediate certificates
Certificate authorities sign website certificates with an intermediate certificate, and the intermediate certificate is signed by a root certificate that is installed as a trusted certificate in the browser or the operating system. That is why the server sends the browser both the website certificate and the intermediate certificates. In the chain file, the website certificate comes first, followed by the intermediate certificates. When an intermediate certificate is missing, some browsers and devices show a security error. When you decode a valid chain file, the issuer of each certificate matches the subject of the next certificate, and the root certificate does not need to be included in the file.
Certificate validity period
Every certificate has a validity start date and end date, and after the end date the browser shows a warning page instead of the site. The CA/Browser Forum, which sets the rules for public SSL certificates, is gradually shortening the maximum validity period of certificates. As a result, automatic renewal, for example with the ACME protocol, is becoming the standard way to manage certificates, and manual renewal requires close tracking of expiration dates.
Common values in certificate rows
DNS:*.example.coma wildcard name that covers one level of subdomains, such as shop.example.com, but does not cover example.com itself.IP:192.0.2.10an IP address that the certificate covers, for accessing the server by its address rather than by a domain name.serverAuthserver authentication, the usage that a website certificate requires.clientAuthclient authentication, for example when you sign in to a service with a certificate.digitalSignatureuse of the key for digital signatures, for example while a TLS connection is being established.keyCertSignsigning other certificates, a usage that appears only in CA certificates.
With our website and server monitoring service, SSL certificate validity checks are included in every plan.
Related tools
SSL certificate decoder FAQ
Does the decoder check that the certificate is trusted?
No. The decoder only shows what the certificate contains. It does not check the signature, the chain up to a trusted root certificate, or whether the certificate was revoked. To check the certificate installed on a website, including the chain, you can use the "SSL certificate checker" tool.
Can I decode a DER, P7B, or PFX file?
The decoder accepts certificates in PEM format, as well as the Base64 content of a certificate without the BEGIN and END lines. You can convert a binary DER file to PEM format with the command openssl x509 -inform der -in certificate.der -out certificate.pem, and you can extract the certificates from a P7B file with the command openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem. A PFX file also contains the private key, so extract only the certificates from it on your local computer, with the command openssl pkcs12 -in certificate.pfx -nokeys -out certificate.pem.
Why do I see a message that the input contains a private key?
When the input contains the words PRIVATE KEY, none of the input is decoded, even if it also contains certificates. The decoder is for certificates only, so paste only the CERTIFICATE blocks.
How do I check that a certificate matches the private key?
A certificate and its matching private key share the same public key, and you compare them on the computer where the key is stored. Compare the output of the command openssl x509 -noout -pubkey -in certificate.pem with the output of the command openssl pkey -pubout -in private.key. When the two outputs are identical, the certificate matches the key.
Why are the dates in the decoder different from the dates shown in the browser?
The decoder shows dates in UTC, while browsers show dates in local time, so the time shown in the browser may differ by a few hours, and sometimes the date falls on a different day. The number of days until the certificate expires is calculated from the device clock.
How many certificates can I decode at once?
You can decode up to 10 certificates and up to 65,536 characters at a time. A website chain usually includes two or three certificates.