PEM Certificate Inspector
Parse a PEM certificate or private key and inspect its fields
About
Parse a PEM-encoded X.509 certificate or private key and show its fields: subject and issuer DNs, validity window (with expired status), serial number, version, public-key algorithm and size, signature algorithm, and Subject Alternative Names. Everything runs locally in your browser; the PEM is never uploaded.
Examples
Inspect a self-signed certificate
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJALmVVuDWu4NY...
-----END CERTIFICATE-----Subject: CN=localhost
Issuer: CN=localhost
Validity: 2024-01-01 → 2025-01-01
Serial: 04:A1:B2:C3...
Version: 3
Key: RSA 2048-bit
SigAlg: SHA256withRSA
SANs: DNS:localhost, IP:127.0.0.1The self-signed cert shows CN=localhost as both subject and issuer, a 1-year validity window, and SANs for local development.
Inspect a private key
-----BEGIN RSA PRIVATE KEY-----Key type: RSA
Key size: 2048-bit
Modulus: <shown in hex>Private key PEM blocks show the key type and bit length. The key material itself is not displayed in full for security.
About this tool
PEM-encoded X.509 certificates and private keys are everywhere in TLS, code signing, and SSH. A PEM file is base64-encoded ASN.1 data wrapped in -----BEGIN CERTIFICATE----- or -----BEGIN RSA PRIVATE KEY----- headers. Before importing a certificate into a system or deploying a key, it is worth inspecting the decoded fields — subject, issuer, validity dates, SANs, key algorithm, and signature — to confirm they are what you expect.
This inspector uses node-forge to parse PEM certificates and private keys entirely in the browser. It shows subject and issuer DN, the validity window with expired/not-yet-valid status, serial number, version, public-key algorithm and bit length, signature algorithm, and Subject Alternative Names (DNS, IP, email). A 'Load sample' button generates a fresh self-signed 1024-bit demo certificate so you can explore the output without real data.
How to use this tool
Paste a PEM certificate or key
Paste the PEM content (-----BEGIN CERTIFICATE----- or -----BEGIN RSA PRIVATE KEY-----) into the input area, or click Load sample to inspect a demo cert.
Read the decoded fields
The tool surfaces the subject, issuer, validity dates, serial, version, key algorithm and size, signature algorithm, and SANs.
Check the expiry
A clear badge indicates Valid, Expired, or Not Yet Valid. The validity window is shown in both human-readable form and as a Unix timestamp.
Use cases
Verifying a TLS certificate before deployment
Paste a certificate to confirm the SANs include all the domains it will serve, the key size is adequate (2048-bit+ RSA or P-256+ EC), and the validity window covers the expected deployment period.
Inspecting a code-signing certificate
Confirm a code-signing certificate's subject name, key algorithm, and validity window before signing a binary.
Debugging certificate chain issues
Decode each certificate in the chain separately to see the subject, issuer, and validity of each link and identify where the chain breaks.
Common mistakes
Mistake:Trusting a certificate without checking the SANs.
Fix:Browsers validate the SAN list, not the Common Name (CN). A cert with CN=example.com but no SAN for example.com will be rejected by modern browsers even if the CN matches.
Mistake:Using a 1024-bit RSA key in production.
Fix:1024-bit RSA is below modern security thresholds. Use RSA 2048-bit minimum (4096-bit preferred) or EC P-256/P-384. The tool flags this.
Mistake:Not checking the validity window.
Fix:An expired certificate causes TLS handshake failures. Always confirm the validity window covers the current date and your planned deployment period.
Frequently asked questions
What does the 'Load sample' button do?
It generates a fresh, self-signed 1024-bit RSA certificate with CN=localhost, valid for 1 year. The certificate is created entirely in your browser using node-forge — no network request is made.
Does it decode both certificates and private keys?
Yes. The inspector auto-detects the PEM block type and decodes it accordingly. For private keys it shows the key type and size; for certificates it shows the full subject, issuer, validity, SANs, and more.
Does it show the full certificate chain?
No. This tool inspects a single PEM block. To inspect a chain, paste each certificate separately — the tool will decode each one individually.
Is my PEM data uploaded anywhere?
No. All parsing runs entirely in your browser using node-forge; the PEM content is never transmitted or stored.
Related guides
PKI Key Pair Generator: Self-Signed Certs and CSRs in the Browser
Generate RSA/ECDSA keys, self-signed X.509 certificates and PKCS#10 CSRs online with node-forge — for local HTTPS and dev TLS.
Reading a PEM Certificate: Subject, Issuer, SANs and Expiry
What the fields in a PEM certificate mean, why Subject Alternative Names matter more than the Common Name, and how to decode expiry and key usage.
References & standards
Related tools
AES Encryption
Encrypt and decrypt text with AES-GCM and a passphrase, fully in your browser. Uses PBKDF2 key derivation and the Web Crypto API — your data and keys never leave your device.
Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password. Produces the Authorization header and ready-to-use curl and fetch snippets. Runs fully client-side.
Bcrypt Generator & Verifier
Hash passwords with bcrypt and verify hashes — choose your cost factor (rounds 4–15), get a secure hash instantly, and check whether a password matches a hash. Runs entirely in your browser.
BIP39 Mnemonic Generator
Generate and validate BIP39 seed phrases locally for testing
Checksum Calculator
Compute file checksums (SHA-1, SHA-256, SHA-384, SHA-512) in your browser with the Web Crypto API
Client-Side File Encryptor
Encrypt any file with AES-256-GCM and PBKDF2 directly in your browser — no uploads, no accounts, wrong passwords fail loudly.