Certificate Chain Inspector

Inspect PEM certificate chains for expiration, weak algorithms, key size issues, and chain completeness — with security scoring

Enter PEM-encoded certificates as they appear in .crt or .pem files. Include all chain certificates for full analysis.

Inspecting X.509 Certificate Chains for Security Issues

TLS certificate chains establish trust between a client and server — the server presents its leaf certificate along with intermediate certificates that chain up to a trusted root CA. A broken chain prevents browsers from verifying server identity, expired certificates trigger security warnings that drive users away, and weak signature algorithms (SHA-1, MD5) or insufficient key sizes leave connections vulnerable to forgery. The Certificate Chain Inspector analyzes your PEM-encoded certificate chain to detect expiration, weak cryptography, incomplete chains, and ordering issues before they cause outages or security incidents.

Paste your PEM certificate chain (one or more certificates in PEM format) to receive chain completeness analysis, expiration status, algorithm strength evaluation, key size assessment, and ordering validation. Each finding includes severity classification and specific remediation guidance. All processing happens client-side — your certificates and private data never leave your browser.

Chain Completeness and Ordering

A valid certificate chain must form a continuous trust path from leaf to root:

  • Missing intermediates: If the chain only contains the leaf certificate, some clients cannot build the path to a trusted root and will reject the connection
  • Incorrect ordering: Certificates must be ordered leaf-first, followed by intermediates in order up to the root — reversed chains may work in some implementations but fail in others
  • Extraneous certificates: Including unrelated certificates adds TLS handshake overhead without providing trust
  • Self-signed leaf: A leaf certificate that is self-signed (issuer equals subject) will not be trusted by browsers unless explicitly added to their trust store

Expiration and Validity Windows

The inspector checks temporal validity of each certificate in the chain:

  • Already expired: Certificates past their notAfter date — browsers display security warnings or refuse connection entirely
  • Expiring soon: Certificates expiring within 30 days need immediate renewal planning
  • Not yet valid: Certificates with a notBefore date in the future (clock skew or premature deployment)
  • Excessive validity: Leaf certificates valid for more than 398 days violate CA/Browser Forum requirements

Intermediate CA certificates typically have longer validity periods (5-10 years) while leaf certificates should be 90 days to 1 year for security best practices.

Cryptographic Strength Assessment

The inspector evaluates the cryptographic algorithms and key sizes used in each certificate:

  • Signature algorithm: SHA-256 or SHA-384 recommended; SHA-1 is deprecated and MD5 is broken
  • RSA key size: Minimum 2048 bits required; 4096 bits recommended for CAs
  • ECDSA curves: P-256 (secp256r1) or P-384 recommended; P-521 offers diminishing returns
  • Certificate version: X.509 v3 required for modern TLS with extensions

Certificates using SHA-1 signatures are rejected by all major browsers since 2017. The inspector flags any certificate using deprecated algorithms regardless of its position in the chain.

Code Examples

Certificate Chain Analysis Output

# Chain analysis for: example.com

# Certificate 1 (Leaf):
#   Subject: CN=example.com
#   Issuer: CN=Let's Encrypt Authority X3
#   Valid: 2024-01-15 to 2024-04-14 (90 days)
#   Key: RSA 2048-bit
#   Signature: SHA-256
#   Status: ✓ Valid (expires in 45 days)

# Certificate 2 (Intermediate):
#   Subject: CN=Let's Encrypt Authority X3
#   Issuer: CN=DST Root CA X3
#   Valid: 2016-03-17 to 2021-03-17
#   Key: RSA 2048-bit
#   Signature: SHA-256
#   Status: ✗ EXPIRED (expired 2021-03-17)

# Findings:
# - CRITICAL: Intermediate certificate expired — replace with current chain
# - WARN: Leaf expires in 45 days — schedule renewal
# - INFO: Chain ordering is correct (leaf → intermediate)
# Security score: 4/10

Frequently Asked Questions

What does the Certificate Chain Inspector check?

The Certificate Chain Inspector analyzes PEM-encoded X.509 certificates for validity (expired or not-yet-valid dates), weak signature algorithms (MD2, MD5, SHA-1), insufficient key sizes (RSA < 2048 bits, EC < 256 bits), chain completeness (missing intermediates), chain ordering, and self-signed leaf certificates. It calculates a security score and provides actionable recommendations.

How is the security score calculated?

The score starts at 100 and deducts points based on finding severity: Critical issues (expired certificates, weak algorithms) deduct 25 points, High issues (expiring soon, weak keys) deduct 15, Medium issues (chain ordering, missing intermediates) deduct 8, and Low issues deduct 3. The final score maps to a letter grade: A (90+), B (75+), C (60+), D (40+), F (below 40).

Is my certificate data sent to any server?

No. All certificate parsing and analysis happens entirely in your browser using JavaScript. Your certificates and private keys never leave your device. Nothing is stored, logged, or transmitted to any server.

What format should the input be?

Enter one or more PEM-encoded X.509 certificates. Each certificate starts with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE-----. You can paste an entire chain (leaf + intermediates + root) or individual certificates. The tool supports both 'CERTIFICATE' and 'X509 CERTIFICATE' headers.

What is a certificate chain and why does order matter?

A certificate chain connects your leaf (server) certificate to a trusted root CA through intermediate certificates. The correct order is: leaf certificate first, followed by each intermediate CA that issued it, with the root CA last (optional). Incorrect ordering can cause TLS handshake failures in some clients.

Why are SHA-1 and MD5 algorithms flagged as critical?

SHA-1 and MD5 are cryptographically broken — practical collision attacks exist that allow forging certificates. All major browsers and CAs deprecated SHA-1 certificates in 2017. Any certificate still using SHA-1 or MD5 signatures should be reissued immediately with SHA-256 or stronger.

What key size is considered secure?

For RSA keys, 2048 bits is the minimum recommended by NIST and all major CAs. For elliptic curve (EC) keys, P-256 (256 bits) provides equivalent security to RSA 3072. Keys smaller than these thresholds are flagged because they can potentially be factored with modern computing resources.

Can I inspect private keys with this tool?

The tool only processes CERTIFICATE blocks, not private keys. If your PEM file includes private key blocks (BEGIN PRIVATE KEY or BEGIN RSA PRIVATE KEY), they are ignored during inspection. For security, avoid pasting private keys into any tool — even client-side ones.

What does 'chain incomplete' mean?

A single non-self-signed certificate without its issuing CA certificates means the chain is incomplete. Web servers must send all intermediate certificates so clients can build a trust path to the root CA. Missing intermediates cause TLS errors in browsers and API clients that don't cache intermediates.