X.509 Certificate Decoder & Classifier
Automatically decode, inspect, and classify SSL/TLS certificates into Leaf, Intermediate CA, and Root CA.
No Certificate Data Yet
Upload your certificate files (.pem, .crt, .cer, .der, .txt) or paste PEM certificate text above, then click "Decode & Classify Certificates" to inspect details.
Understanding Certificate Classification (RFC 5280) & PKI Architecture
RFC 5280 • RFC 6125Server / Domain Certificate
Issued directly to the terminating service or domain (e.g., example.com). The Basic Constraints extension explicitly specifies cA=false, which cryptographically forbids this certificate from issuing or signing subordinate certificates.
- Key Usage: Digital Signature, Key Encipherment.
- Identities: Contains Subject Alternative Names (SANs) for host matching.
Subordinate Authority
Bridges cryptographic trust between the Root CA and end-entity Leaf certificates. It has cA=true and KeyCertSign enabled. Its Subject differs from its Issuer, proving it was signed by an upstream authority.
- Purpose: Isolates the Root CA from day-to-day issuance risk.
- Distribution: Must be served by web servers in the SSL bundle.
Master Trust Anchor
The ultimate trust anchor of the Public Key Infrastructure. It is strictly self-signed (Subject == Issuer) and possesses cA=true with KeyCertSign.
- Storage: Pre-installed in OS and browser local trust stores.
- Security: Kept in air-gapped, offline Hardware Security Modules (HSMs).
Anatomy of an X.509 v3 Digital Certificate
Core Identity & Cryptographic Fields
- Serial Number: A positive integer unique within the issuing CA's registry, used to distinguish certificates and track revocations in CRLs.
- Signature Algorithm: Identifies the hash and cryptographic algorithm used by the issuing CA to sign the certificate (e.g.,
SHA256withRSA,ECDSA-SHA384, or modernEd25519). - Distinguished Name (DN): Formatted attributes representing entity identity, including Common Name (
CN), Organization (O), Country (C), and Locality (L). - Public Key Info: Contains the public parameters (e.g., 2048/4096-bit RSA Modulus & Exponent, or NIST P-256 / P-384 / Ed25519 elliptic curve point) and the cryptographic algorithm identifier.
Essential Standard Extensions (RFC 5280)
- Subject Alternative Name (SAN): Mandatory under RFC 6125. Declares all domain hostnames, IP addresses, and wildcard entries (
*.example.com) secured by the certificate. - Key Identifiers (SKI / AKI): Subject Key Identifier and Authority Key Identifier match the SHA-1/SHA-256 hash of the public key to facilitate trust chain construction without ambiguity.
- Revocation (CRL / OCSP): URLs in the Authority Information Access (AIA) and CRL Distribution Points allowing clients to verify whether the certificate was revoked before expiration.
- Validity Window: Strict
NotBeforeandNotAftertimestamps ensuring certificates expire predictably according to CA/Browser Forum rules.
Practical OpenSSL CLI Commands Cheat Sheet
Troubleshooting Common SSL/TLS Certificate Errors
Occurs when the visited URL does not match any DNS entry in the Subject Alternative Name (SAN) extension. Modern browsers ignore the legacy Common Name (CN) field if SAN is omitted or mismatched. Note that wildcards like *.domain.com do not cover multiple subdomain levels (e.g. sub.app.domain.com).
Happens when your web server (Nginx, Apache, or Caddy) provides only the Leaf certificate without bundling the Intermediate CA certificate. Desktop browsers often cache intermediate certificates, but mobile browsers and curl commands will throw trust errors. Fix by combining the leaf and intermediate certs into a full-chain bundle.
Triggered when the current time is outside the certificate's NotBefore or NotAfter window. Either the certificate has expired, or the user's client clock has drifted. Always monitor expiration alerts using our days remaining indicator.
Frequently Asked Questions
.pem, .crt, .cer, .ca-bundle, .txt) as well as binary DER encoded certificates (.der) and PKCS#7 certificate collections (.p7b). Up to 200 files or 25 MB total can be inspected at once.
Basic Constraints extension must contain cA=true, and (2) The Subject Distinguished Name is compared against the Issuer Distinguished Name. If the Subject matches the Issuer, it is self-signed and classified as a Root CA. If the Subject differs from the Issuer, it was signed by an upstream authority and is classified as an Intermediate CA.