X.509 / ASN.1 Certificate Inspector
Decode X.509 certificates, chains and CSRs: SANs, usages, CT SCTs, chain order and an ASN.1 tree.
How it works
Paste or upload a PEM/DER certificate, a whole chain or a PKCS#10 certificate signing request. Shows subject, issuer, validity and expiry warnings, SANs, key usage and EKU, basic constraints, AIA (OCSP, CA issuers), CRL distribution points, policies, embedded Certificate Transparency SCTs, fingerprints and the signature algorithm, checks the chain order with real signature verification, and includes a generic ASN.1 DER tree viewer with OID names.
- Input may hold several PEM blocks (CERTIFICATE, CERTIFICATE REQUEST) or one base64/hex/binary DER object. Each certificate is parsed twice: by Node.js crypto.X509Certificate (OpenSSL) for fingerprints, keys and signature checks, and by an in-house DER parser for the exact fields and extensions.
- Decoded extensions: subjectAltName, keyUsage, extKeyUsage, basicConstraints, authorityInfoAccess (OCSP, caIssuers), cRLDistributionPoints, certificatePolicies (with CPS URIs), the CT SignedCertificateTimestampList (RFC 6962: version, log id, timestamp, algorithms), key identifiers and TLS Feature (OCSP Must-Staple). Others are listed with OID name and criticality.
- Chain order: each certificate must be issued by the next one (issuer name = next subject, and the signature verifies with X509Certificate.verify). A suggested leaf → root order is derived from the verified issuer links. Trust in a root store is NOT evaluated, and revocation (OCSP/CRL) is not checked.
- Warnings: expired / not yet valid / expiring within 30 days (relative to the time of the request), SHA-1/MD5 signatures, RSA keys under 2048 bits, TLS server certificates without SAN or valid for more than 398 days (CA/Browser Forum Baseline Requirements), issuers without CA:TRUE.
- CSR (PKCS#10, RFC 2986): subject, public key, attributes and requested extensions; the self-signature is verified (RSA PKCS#1 v1.5, RSA-PSS, ECDSA, Ed25519/Ed448). Challenge passwords are never shown.
- The ASN.1 viewer prints tag, header and value lengths and values (integers, OIDs with names from a bundled map, strings, times) and descends into BIT/OCTET STRINGs that contain DER, like openssl asn1parse. At most 400 rows are shown.
Structural inspection only: trust-store membership and revocation are not checked.
Sources
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Keysmith Crypto & secrets lab
Audit certificates, keys, TLS and passwords in one lab; server runs ask first.
Related tools
- RSA/ECC Key Inspector – Inspect PEM, DER, JWK or OpenSSH keys: type, size, curve, fingerprints, thumbprint and weaknesses.
- DNS + Certificate Explorer – DNS records, e-mail security, CAA, live TLS certificate and CT history for a domain.
- Certificate Transparency Explorer – Every logged certificate for a domain: history, issuers, subdomains, wildcards and expiry.
How to use the X.509 / ASN.1 Certificate Inspector
Decode certificates, chains and CSRs, check expiry, SANs and chain order with real signature checks, and browse the raw ASN.1 tree.
What it is for
TLS problems often turn out to be certificate problems: a missing intermediate, a chain in the wrong order, a SAN that doesn't cover example.com without www, or a certificate that quietly expires next week. This inspector reads one certificate, a full chain or a PKCS#10 CSR (PEM, base64, hex or binary DER) and lays out everything that matters.
For each certificate you get subject, issuer, validity with days remaining, SANs, key usage and extended key usage, basic constraints, OCSP and CA-issuer URLs, CRL distribution points, policies, embedded Certificate Transparency SCTs, fingerprints and key details. For a chain, it verifies each signature against the next certificate and suggests the correct order. An ASN.1 mode shows the DER tree of any object, with OID names.
It does not check whether a root is in a browser trust store, and it doesn't check revocation (OCSP/CRL).
Worked example
We pasted the built-in demo chain (leaf, intermediate, root) on 25 October 2026. The summary:
Chain of 3 certificates for CN=www.example.test: valid until 2027-06-01 (218 days left); order correct, complete up to a self-signed root.
The leaf has SANs DNS:www.example.test, DNS:example.test and IP:192.0.2.10, key usage digitalSignature, EKU serverAuth, clientAuth, CA:false, an EC P-256 key signed with ecdsa-with-SHA256, the policy "CA/B Domain Validated" and one SCT.
Next, we pasted only the intermediate and the leaf, intermediate first, which is a common copy-paste mistake. Result: order WRONG, with "Suggested order: 2 → 1" and "The chain is incomplete: an issuer certificate is missing (servers must send all intermediates; the root is optional)."
A legacy self-signed certificate was flagged three times: expired on 2016-01-01, signed with sha1WithRSAEncryption, and an RSA key of 1024 bits, below the 2048-bit minimum.
How to read the result
- Summary: the main subject, expiry with days left, and the chain verdict.
- Per certificate: start with status (valid, expired, not yet valid) and daysRemaining. Then check SANs: browsers ignore the CN and match only SANs.
- isCA / basicConstraints / pathLen: a leaf must have
CA:false, and an intermediateCA:true, often withpathLen 0. - Chain: whether each certificate is signed by the next one (a real signature check, not just name matching), plus a suggested leaf → root order.
- CSR: the requested subject, key, SANs and whether the CSR's self-signature is valid.
- Warnings: expiry within 30 days, SHA-1/MD5, small RSA keys, server certificates without SANs or valid for more than 398 days.
Tips and common mistakes
- Your server should send leaf + intermediates. Including the root is optional and only costs bytes.
- Check a CSR before you submit it. Missing SANs are the most common reason for a reissue.
- The expiry calculation is relative to the moment you run the tool, so "days left" changes daily.
- Compare the SPKI SHA-256 of a CSR with that of the issued certificate. The demo CSR and leaf share
y79TCNIh…, which proves the certificate belongs to that key. - The ASN.1 mode works on any DER object, not just certificates. The demo root certificate decoded to 64 elements in 424 bytes.
- A self-signed root with SHA-1 is not automatically a problem, because browsers don't check a trusted root's self-signature. A SHA-1 leaf or intermediate is.
FAQ
Does a "complete, correct order" chain mean browsers will trust it?
Not necessarily. The tool doesn't evaluate trust-store membership or revocation. Test the live site with a TLS scanner as well.
Can I upload a .der or .crt file?
Yes, PEM or binary DER up to 1 MB. Several PEM blocks in one file are read as a chain.
What are SCTs?
Signed Certificate Timestamps prove the certificate was logged in a Certificate Transparency log, as RFC 6962 describes. The tool shows each log ID and timestamp.
Why are there two SHA-256 fingerprints?
The certificate fingerprint covers the whole certificate. The SPKI fingerprint covers only the public key and stays the same when a certificate is renewed with the same key.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://x509certificateinspector.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://x509certificateinspector.usefulweb.site/mcp· tool namex509_certificate_inspector
Example request
curl -s -X POST https://x509certificateinspector.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'