rea-reverse

X.509 certificate decoder

Paste a PEM certificate or a whole chain, or drop a DER, CRT, CER or P7B file, to see every field and extension, the SHA-1 and SHA-256 fingerprints, whether the chain is in order and whether each certificate is valid today.

Your certificates never leave your browser. Decoding runs locally in a Web Worker inside an isolated frame that has no network access; scripts on this page, ads included, cannot see into it. AIA, CRL and OCSP URLs are shown as text and never fetched. How to verify this yourself

Open the tool on its own page (no ads, no analytics)

When a TLS handshake fails, a mobile app rejects a pinned certificate, or a CA sends you a bundle, the first question is usually “what is actually in this certificate?”. openssl x509 -noout -text answers it, but you have to have OpenSSL at hand, save the text to a file, and run it once per certificate in a chain. Pasting a certificate into a random website is the other option, and it is a poor habit even for public certificates when the same box later receives a private key.

This decoder runs entirely in your browser. Paste PEM text (one certificate or a whole chain) or drop a file.

How to use

  1. Get the certificate as text: copy a .pem or .crt file, or run openssl s_client -connect example.com:443 -showcerts </dev/null and copy its whole output. Text around the PEM blocks is ignored.
  2. Paste it into the box above and press Decode, or drop a DER, CRT, CER or P7B file onto the drop zone.
  3. Read the chain order verdict first, then each certificate: validity and days left, SAN, key usage, the extensions and the fingerprints to copy.

Real example output

We fetched the chain this site serves with openssl s_client -showcerts, pasted the whole output into this page and copied what it displayed. Layout condensed (label and value on one line, copy buttons and the MD5/SHA-1 rows left out); every value is verbatim. Days left are counted from the capture date.

Sample: the certificate chain rea-reverse.com served on 2026-11-02 (leaf, WE1 intermediate, GTS Root R4 cross-signed by GlobalSign Root CA)

Summary
Format     PEM text
Contents   3 certificates

IN ORDER  Each certificate is followed by the certificate that issued it.
1 → 2: issuer name matches; key identifier matches
2 → 3: issuer name matches; key identifier matches
The chain ends without a root, which is normal for a server chain: the client already has the root.
Names and key identifiers only: signatures are not verified.

Certificate 1 of 3: rea-reverse.com
Subject              CN=rea-reverse.com
Issuer               CN=WE1,O=Google Trust Services,C=US
Validity             2026-10-13 03:42:33 UTC → 2027-01-11 04:42:30 UTC  VALID 70 days left
Public key           EC · P-256 · 256 bit
Signature algorithm  ecdsa-with-SHA256
Serial number        bef274d13a80aca91337a3e08675df34
Version              v3
Subject alternative names         DNS:rea-reverse.com
Public key pin (SHA-256, Base64)  Ej22GtttxQhRqyu0lyyRuNnzo3Ekzq/8F4JCeIqfqHE=
SHA-256  F3:42:50:7F:DD:6D:DD:7B:01:64:32:F0:EB:D0:F0:A9:18:B9:4D:CB:34:69:0C:99:1E:24:08:C7:E2:0C:5F:CB
Extensions (10)
keyUsage CRITICAL          digitalSignature
extKeyUsage                serverAuth
basicConstraints CRITICAL  CA:FALSE
subjectKeyIdentifier       C6:6E:81:9F:57:37:66:61:4B:61:D6:F7:B4:BD:D5:27:E7:42:57:F1
authorityKeyIdentifier     keyid:90:77:92:35:67:C4:FF:A8:CC:A9:E6:7B:D9:80:79:7B:CC:93:F9:38
authorityInfoAccess        CA Issuers - URI:http://i.pki.goog/we1.crt
subjectAltName             DNS:rea-reverse.com
certificatePolicies        Policy: 2.23.140.1.2.1 (DV)
cRLDistributionPoints      Full Name: URI:http://c.pki.goog/we1/zyDMiYzGO48.crl
ctSignedCertificateTimestamps
  v1 log WW5sM4aUsllyolbIoOjdkEp26Ag92oc7AQg4KBQ87lk= at 2026-10-13T04:42:33.953Z
  v1 log YEyar3p/d18B1Ab8kg3ImesLHH34yVIb+voXdzuXi8k= at 2026-10-13T04:42:34.019Z

Certificate 2 of 3: WE1
Subject              CN=WE1,O=Google Trust Services,C=US
Issuer               CN=GTS Root R4,O=Google Trust Services LLC,C=US
Validity             2023-12-13 09:00:00 UTC → 2029-02-20 14:00:00 UTC  VALID 841 days left
…
basicConstraints CRITICAL  CA:TRUE, pathlen:0
…

Certificate 3 of 3: GTS Root R4
Subject              CN=GTS Root R4,O=Google Trust Services LLC,C=US
Issuer               CN=GlobalSign Root CA,OU=Root CA,O=GlobalSign nv-sa,C=BE
Validity             2023-11-15 03:43:21 UTC → 2028-01-28 00:00:42 UTC  VALID 451 days left
Public key           EC · P-384 · 384 bit
Signature algorithm  sha256WithRSAEncryption
…

What it reads

  • PEM: any number of -----BEGIN CERTIFICATE----- blocks, TRUSTED CERTIFICATE (OpenSSL’s variant with trust settings), and PKCS7 blocks. Text around the blocks is ignored, so you can paste a whole log excerpt or the output of openssl s_client -showcerts. Private keys and CSRs in the same text are skipped without being read. Base64 without the header lines also works.
  • Files: DER (.der, .cer, .crt), PEM files and PKCS#7 / CMS bundles (.p7b, .p7c). Keystores and APKs are accepted too, but the signing certificate fingerprint viewer is built for those.

What you see for each certificate

  • Subject and issuer in RFC 4514 form (CN=example.test,O=REA Fixtures\, Test,C=CN), the serial number, the version, the signature algorithm, and the public key (RSA modulus size, EC curve such as P-256 or P-384, Ed25519).
  • Validity with a status for today: valid with the number of days left, expired, or not yet valid.
  • Fingerprints: SHA-1, SHA-256 and MD5 of the DER encoding, as colon hex, plain hex and Base64, plus the Base64 SHA-256 of the public key (the HPKP / Android network security config pin).
  • Every extension in the order the certificate stores them, critical ones marked, decoded into text lines that use the RFC 5280 names:
    • subject alternative names (DNS, IP v4 and v6, email, URI, directory names, other names);
    • key usage, extended key usage (serverAuth, clientAuth, codeSigning, …), basic constraints with the path length;
    • subject and authority key identifiers;
    • authority information access (OCSP and CA Issuers URLs) and CRL distribution points, shown as text and never fetched;
    • certificate policies with CA/Browser Forum names (DV, OV, EV) and CPS URLs, name constraints, TLS feature (OCSP Must-Staple);
    • the embedded Certificate Transparency SCT list: the number of SCTs, and each SCT’s log ID and timestamp.
    • Anything else is shown with its OID and the value in hex.

Chain order check

When there is more than one certificate, the page checks each link: is certificate n+1 the issuer of certificate n? It compares the issuer name with the next subject byte for byte, and the authority key identifier with the next subject key identifier when both exist. A server should send its leaf first, then each intermediate; a common deployment mistake is a bundle in the wrong order, or with the root first, and the check flags that. It also says whether the chain ends with a self-issued root, which servers normally leave out.

This is a structural check. Signatures are not verified, and revocation (CRL, OCSP) is not looked up, because that would mean contacting the CA from your browser.

How we checked it

The test certificates were made with OpenSSL 4.0.3: an EC P-256 root, an EC P-384 intermediate with pathlen:0, and an RSA 2048 leaf with two DNS names, an IPv4 and an IPv6 address, an email and a URI in the SAN, both TLS EKUs, AIA, a CRL distribution point, a DV policy and two SCTs, plus an expired certificate from 2000. The unit tests compare fingerprints, names, dates, key sizes, critical flags and each of those extensions with openssl x509 -text -fingerprint. OpenSSL prints IPv6 SANs uncompressed (2001:DB8:0:0:0:0:0:1); this page writes them in the RFC 5952 short form (2001:db8::1).

How your data stays private

  • The decoder runs in a separate frame served from rea-reverse.com, and decoding runs in a Web Worker inside it, on your device. Nothing you paste or drop is uploaded.
  • This page shows one ad, below the article. The ad script runs on tools.rea-reverse.com; the frame is a different origin, so the browser does not let the ad script, or any other script on this page, read what you paste, the file you drop, or the results.
  • The frame’s Content Security Policy blocks every request its scripts could make (connect-src 'none', no third-party resources at all), and the frame cannot open windows or navigate this page by itself. The only things it passes to this page are its height and the analytics events below.
  • Values from the certificate are shown as plain text. URLs inside it are not turned into links and are never requested.
  • Analytics events contain only coarse values: success or an error code, the detected format, a count bucket, a size bucket and a duration bucket. No names, URLs or fingerprints. The frame hands them to this page, which sends them. The full list is on the privacy page.
  • Prefer no ads and no analytics at all? Open the decoder on its own page.

How to verify this yourself

  1. Open your browser’s developer tools on the Network tab and load this page. Requests to rea-reverse.com are the frame: its HTML, styles, fonts and scripts, and the worker script /_astro/cert-worker-*.js. Requests to Google domains are the ad on this page.
  2. Clear the log, then paste a chain and decode it. Type domain:rea-reverse.com in the filter box. At most the worker script /_astro/cert-worker-*.js appears again (a fresh worker is prepared for the next run); no request carries your data. Ad requests may continue, but they come from this page and carry nothing from the frame.
  3. Click the x509-certificate-decoder/ document from rea-reverse.com and open Headers: its Content-Security-Policy has connect-src 'none', and frame-ancestors https://tools.rea-reverse.com. In Chrome, Application > Frames also shows the frame’s origin and policy. The worker runs under default-src 'none'; script-src 'self'; connect-src 'none'.
  4. Check the isolation: in the Console, with the context set to top, run document.getElementById('tool-frame').contentDocument. It returns null. frames[0].document throws a SecurityError. That is what the ad script gets too.
  5. Or load the page, go offline, and decode. It still works.
  6. Compare with openssl x509 -in cert.pem -noout -text -fingerprint -sha256.

Limitations

  • No signature verification, no revocation check, no trust-store lookup: “in order” does not mean “trusted”.
  • Encodings: DER, and BER with indefinite lengths (as in PKCS#7 / CMS files written by openssl cms -stream). Fingerprints are computed over the bytes as stored.
  • Rare extensions (policy mappings, policy constraints, subject directory attributes, qualified statements) are shown as hex.
  • Certificate requests (CSR), CRLs and OCSP responses are not decoded.

Command-line equivalent

Fetch the chain a server sends (OpenSSL 4.0.3; trimmed to the chain summary):

$ openssl s_client -connect rea-reverse.com:443 -servername rea-reverse.com -showcerts </dev/null
…
Certificate chain
 0 s:CN=rea-reverse.com
   i:C=US, O=Google Trust Services, CN=WE1
   a:PKEY: EC, (prime256v1); sigalg: ecdsa-with-SHA256
   v:NotBefore: Oct 13 03:42:33 2026 GMT; NotAfter: Jan 11 04:42:30 2027 GMT
 1 s:C=US, O=Google Trust Services, CN=WE1
   i:C=US, O=Google Trust Services LLC, CN=GTS Root R4
   a:PKEY: EC, (prime256v1); sigalg: ecdsa-with-SHA384
   v:NotBefore: Dec 13 09:00:00 2023 GMT; NotAfter: Feb 20 14:00:00 2029 GMT
 2 s:C=US, O=Google Trust Services LLC, CN=GTS Root R4
   i:C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
   a:PKEY: EC, (secp384r1); sigalg: sha256WithRSAEncryption
   v:NotBefore: Nov 15 03:43:21 2023 GMT; NotAfter: Jan 28 00:00:42 2028 GMT
…
Verification: OK

Save the -----BEGIN CERTIFICATE----- blocks as chain.pem. openssl x509 reads only the first certificate in the file, the leaf:

$ openssl x509 -in chain.pem -noout -subject -issuer -dates -ext subjectAltName,keyUsage,extendedKeyUsage,basicConstraints
subject=CN=rea-reverse.com
issuer=C=US, O=Google Trust Services, CN=WE1
notBefore=Oct 13 03:42:33 2026 GMT
notAfter=Jan 11 04:42:30 2027 GMT
X509v3 Key Usage: critical
    Digital Signature
X509v3 Extended Key Usage:
    TLS Web Server Authentication
X509v3 Basic Constraints: critical
    CA:FALSE
X509v3 Subject Alternative Name:
    DNS:rea-reverse.com
$ openssl x509 -in chain.pem -noout -fingerprint -sha256
sha256 Fingerprint=F3:42:50:7F:DD:6D:DD:7B:01:64:32:F0:EB:D0:F0:A9:18:B9:4D:CB:34:69:0C:99:1E:24:08:C7:E2:0C:5F:CB

The public key pin (Base64 SHA-256 of the SubjectPublicKeyInfo):

$ openssl x509 -in chain.pem -noout -pubkey | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | base64
Ej22GtttxQhRqyu0lyyRuNnzo3Ekzq/8F4JCeIqfqHE=

List subject and issuer of every certificate in the file, in file order, to check the chain order by eye:

$ openssl crl2pkcs7 -nocrl -certfile chain.pem | openssl pkcs7 -print_certs -noout
subject=CN=rea-reverse.com
issuer=C=US, O=Google Trust Services, CN=WE1

subject=C=US, O=Google Trust Services, CN=WE1
issuer=C=US, O=Google Trust Services LLC, CN=GTS Root R4

subject=C=US, O=Google Trust Services LLC, CN=GTS Root R4
issuer=C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA

What this page does not do, signature verification against your trust store, is one more command:

$ openssl verify -untrusted chain.pem chain.pem
chain.pem: OK

FAQ

How do I decode a PEM certificate without uploading it?

Paste it into this page. Decoding runs in a Web Worker in your browser and the worker has no network access, so the certificate is never sent anywhere. Offline, openssl x509 -in cert.pem -noout -text prints the same fields.

How do I check that my certificate chain is in the right order?

Paste the whole chain, for example the output of openssl s_client -showcerts. The page checks that each certificate is followed by its issuer, comparing the issuer name with the next subject and the authority key identifier with the next subject key identifier. A server should send its leaf first, then each intermediate.

Does IN ORDER mean the chain is trusted?

No. The check is structural: signatures are not verified, revocation is not looked up and no trust store is consulted. Run openssl verify -untrusted chain.pem leaf.pem for the signature and trust check.

Why does my server chain end without a root certificate?

Because clients already have the root in their trust store, servers normally leave it out. In the rea-reverse.com chain above, the last certificate is GTS Root R4 issued by GlobalSign Root CA: a cross-signed copy, not the self-signed root.

Where do I find the SHA-256 fingerprint and the public key pin?

Every certificate has a Fingerprints block with SHA-1, SHA-256 and MD5 in colon hex, plain hex and Base64, and a Public key pin line: the Base64 SHA-256 of the public key that Android network security config and similar pinning settings expect.

Can I open DER, CRT, CER or P7B files?

Yes. Drop the file onto the drop zone: DER and PEM files with any of these extensions and PKCS#7 bundles (.p7b, .p7c) are read. For keystores and APKs, use the signing certificate fingerprint viewer.

Updated