Browser-based certificate decoder · certificates are read here, never sent

SSL Certificate Decoder

Paste a PEM certificate or a whole chain, or drop a .crt, .cer or .der file. You get the subject and issuer, names, validity, key and signature algorithms, extensions, SHA-1 and SHA-256 fingerprints, chain order with signature checks, and plain warnings about expiry and weak settings.

Certificate

Drop a certificate file

PEM or binary DER, up to 3 MB

Paste certificates only. A private key pasted here is ignored, but keys should never be pasted into any web page.

SSL Certificate Decoder with Chain and Signature Checks

Operator: Abdulla Al Fahad. How tools are built and checked

A 90-day leaf certificate for example.com and *.example.com, signed by a P-384 intermediate that is signed by a 3072-bit root, is three PEM blocks in a file. Paste them in the order root, leaf, intermediate and the decoder says the chain is out of order and should be sent as certificate 2, then 3, then 1, and it checks each signature against its issuer's public key: leaf valid, intermediate valid, root valid.

For every certificate it also lists subject and issuer, the validity dates, the key and signature algorithms, the SAN list, the key usage extensions and the SHA-1 and SHA-256 fingerprints, with plain warnings about expiry, weak algorithms and a missing SAN.

The decoder describes the file you give it and nothing else: it makes no network request, so it cannot know whether a certificate has been revoked or whether a browser would trust the chain.

Key features

  • PEM text with several CERTIFICATE blocks (up to 100, 3 MB), bare base64, or a binary DER file
  • Subject, issuer, serial, version, validity, public key (RSA bits and exponent, or the EC curve) and signature algorithm
  • SAN entries of every kind (DNS, IP, e-mail, URI), basic constraints, key usage, extended key usage, authority information access and CRL distribution points
  • SHA-1 and SHA-256 fingerprints in the colon-separated form browsers and openssl show
  • Chain ordering by issuer and subject name and by key identifiers, with each signature verified for RSA and ECDSA
  • An optional host name checked against the SAN list, including wildcards
  • Expiry warnings at 30 and 14 days and a flag for lifetimes longer than the CA/Browser Forum limit for the issue date

What is decoded, and which checks need more than the file

The decoder is a DER reader written for this page: it walks the tag-length-value structure, refuses indefinite lengths and structures nested deeper than 24 levels or holding more than 50,000 elements, and then reads X.509 fields from the tree. RSA and EC keys, the common signature algorithms (sha1, sha256, sha384, sha512 with RSA, ECDSA with SHA-1 to SHA-512, RSASSA-PSS, Ed25519 and Ed448) and the extensions above are recognised by object identifier; anything else is listed with its OID and the critical flag.

Warnings follow what browsers do. A certificate that expires within 14 days is an error and within 30 days a warning. A certificate that is not a CA, and either allows serverAuth or has no extended key usage at all, is an error when it has no SAN, since browsers match host names only against the SAN. SHA-1 and MD5 signatures and RSA keys below 2048 bits are errors, except that a self-signed root signed with SHA-1 is only a note, since clients do not check a trust anchor's own signature. Publicly trusted TLS certificates are limited to 398 days, and to 200 days when issued from 15 March 2026 (CA/Browser Forum ballot SC-081v3, which steps down again in 2027 and 2029); a longer lifetime is flagged, and a private CA is not bound by it.

Chain signatures are verified with the browser's own cryptography for RSA with PKCS#1 v1.5 padding and for ECDSA with the three NIST curves, P-256, P-384 and P-521. RSASSA-PSS, Ed25519 and Ed448 certificates are decoded fully but their signatures are reported as not checked.

Wildcards match exactly one label, so *.example.com covers www.example.com but neither example.com nor a.b.example.com. An IP address is matched only against IP entries in the SAN list, never against DNS names.

How it works

Each PEM block is decoded from base64 and parsed on its own, so one bad block is reported without hiding the others, and a binary file is tried as DER after a check that it is not PEM text.

For the chain, certificate B is taken to be the issuer of A when B's subject name is byte-for-byte equal to A's issuer name, preferring the one whose subject key identifier equals A's authority key identifier; the walk from the certificate that issues nothing gives the order servers should send.

When this helps

  • A load balancer serves a leaf without its intermediate, and the pasted chain shows that the leaf's issuer is not in the list, with the issuer's name so the right intermediate can be downloaded.
  • A certificate with 12 days left is pasted into a monitoring ticket, and the decoder marks it as an error with the exact expiry date and the SHA-256 fingerprint to quote.
  • A certificate request was answered with a certificate for a different wildcard, and entering the host name shows that it is not covered by the SAN list.

Opening a file

  1. Paste the PEM text, or drop a .pem, .crt, .cer or .der file.
  2. Add a host name if you want it checked against the first certificate, then press Decode.
  3. Read the chain panel first for several certificates, then each certificate's warnings and details.

Example

Three certificates pasted as root, leaf, intermediate

1  Demo Root CA (self-signed)
2  www.example.test, issued by Demo Issuing CA
3  Demo Issuing CA, issued by Demo Root CA
host name checked: www.example.test

Chain report

error: the certificates are out of order; the chain should be sent as 2 then 3 then 1 (leaf first, root last)
info: the list includes the self-signed root; servers do not need to send it
signatures: root valid, leaf valid, intermediate valid
host name www.example.test matches DNS:www.example.test

Tips for best results

  • Paste the whole file the server sends, leaf first: the order check only means something when the certificates are in the order they were served.
  • Compare the SHA-256 fingerprint with the one a browser shows for the site when you need to confirm that two copies are the same certificate.
  • Open All extensions for a precertificate or a private CA certificate: unrecognised extensions are listed with their OIDs and critical flags.

Limits

Revocation is not checked. That needs a request to the OCSP or CRL address in the certificate, and nothing here makes network requests.

The chain is not matched against a trusted root store, so 'valid signature' means the certificate was signed by the next one in the list, not that a browser trusts it.

PKCS#7 (.p7b) bundles and PKCS#12 (.pfx) files are not read; extract the certificates to PEM first with openssl.

Common errors and how to fix them

"Indefinite length at byte 4. DER does not allow it; this input may be BER"
The file uses BER encoding, which some older tools write. Re-encode it with openssl x509 -in cert.crt -outform pem.
"No certificate found"
The text has no -----BEGIN CERTIFICATE----- block. A key or a CSR was pasted, or the header lines were cut off; for a binary certificate drop the file instead. To create a request rather than read a certificate, use the CSR generator on this site.
"A private key was pasted. It is ignored"
Only certificates are read. Delete the key from the text, and treat it as exposed if it was ever shared.

Best practices

  • Paste the chain a live server really sends, from openssl s_client -showcerts -connect host:443, rather than the file you uploaded; the decoder then shows what clients receive.
  • Alert earlier than the decoder does: it warns at 30 days and errors at 14, which leaves little room when a renewal needs a human to approve it.

Reading key usage and extended key usage

Key usage says what the key may do. A server certificate normally lists digitalSignature, plus keyEncipherment for RSA keys; a CA certificate lists keyCertSign and usually cRLSign. Basic constraints with CA true and no keyCertSign is flagged, because such a certificate cannot sign anything.

Extended key usage narrows the purpose further: serverAuth for TLS servers, clientAuth for client certificates, codeSigning, emailProtection, timeStamping and OCSPSigning. Many server certificates carry both serverAuth and clientAuth, which public CAs are dropping for new certificates, so a certificate with only one of them is not a defect.

Frequently asked questions

Why is the server certificate flagged for lifetime when it is valid?

Publicly trusted TLS certificates issued from 15 March 2026 may last at most 200 days, and earlier ones 398 days. A longer certificate may still work with a private CA, which is why it is a warning, not an error.

Why does the root say its signature was not checked?

Only RSA PKCS#1 v1.5 and ECDSA signatures are verified here. A root or intermediate signed with RSA-PSS or Ed25519 is decoded in full, but the signature cannot be verified by this page.

What does it mean when two certificates have the same subject?

That happens when a CA reissues an intermediate with the same name and a new key. Chain matching prefers the issuer whose subject key identifier equals the authority key identifier, so the right one is chosen when both are present.