DataMorphDEVELOPER TOOLKIT
Tools🔗 PipelinesAI MCPAll Tools

SSL Certificate PEM Decoder – DataMorph

Parse raw PEM encoded SSL certificates to inspect signature details, public keys, and extensions.

SSL Certificate Decoder

Paste any SSL/TLS certificate in PEM or DER format and instantly decode its full contents — Subject, Issuer, Subject Alternative Names (SANs), validity period, public key details, signature algorithm, extensions, and certificate chain. Everything is processed locally in your browser using the Web Crypto API; your certificate data never reaches any server.

How to Decode an SSL Certificate

  1. Get your certificate: Paste the PEM-encoded certificate (the text block that starts with -----BEGIN CERTIFICATE-----), upload a .crt, .pem, or .cer file, or paste the DER-encoded base64 string.
  2. Click Decode: The tool parses the X.509 ASN.1 structure and displays all fields in a readable format.
  3. Review the output: Check Subject, SANs, expiry date, issuer chain, and key strength.

SSL Certificate Field Reference

FieldDescriptionExample Value
Subject CNCommon Name — the primary domain the cert protectsexample.com
Subject Alternative Names (SANs)Additional domains/IPs covered by the certificatewww.example.com, api.example.com
Issuer CNCertificate Authority that signed the certDigiCert TLS RSA SHA256 2020 CA1
Valid FromCertificate activation date2025-01-15 00:00:00 UTC
Valid To (Expiry)Certificate expiration date — after this, HTTPS fails2026-01-15 23:59:59 UTC
Serial NumberUnique identifier assigned by the CA0A:1B:2C:3D:...
Public Key AlgorithmAsymmetric key type usedRSA 2048, RSA 4096, ECDSA P-256
Signature AlgorithmHash + key algorithm used to sign the certSHA256withRSA, SHA384withECDSA
Key UsagePermitted uses of the public keyDigital Signature, Key Encipherment
Extended Key UsageMore specific permitted usesTLS Web Server Auth, TLS Web Client Auth
Certificate FingerprintSHA-256 hash of the cert — use to verify identityA1:B2:C3:D4:... (64 hex chars)
Is CAWhether the cert can sign other certificatestrue (Root/Intermediate) / false (Leaf)

Certificate Formats Explained

FormatFile ExtensionsEncodingDescription
PEM.pem, .crt, .cerBase64 ASCIIMost common. Starts with -----BEGIN CERTIFICATE-----. Human-readable base64 encoding. Used by Apache, Nginx, OpenSSL.
DER.der, .cerBinaryBinary version of X.509. Compact. Used by Java keystores and Windows. Cannot be opened in a text editor.
PKCS#7 / P7B.p7b, .p7cBase64 ASCIICan contain certificate chains. Starts with -----BEGIN PKCS7-----. Used by Windows and Java.
PKCS#12 / PFX.pfx, .p12BinaryContains both the certificate AND private key, password-protected. Used for import/export in Windows IIS.
CSR.csrBase64 ASCIICertificate Signing Request. Starts with -----BEGIN CERTIFICATE REQUEST-----. Sent to CA to obtain a certificate.

Certificate Chain Explained

Every TLS certificate is part of a chain of trust that browsers verify:

  1. Root CA: Self-signed certificate pre-installed in operating systems and browsers (e.g., DigiCert Global Root, Let's Encrypt ISRG Root X1). Extremely long validity periods (10-25 years).
  2. Intermediate CA: Signed by the Root CA. Used by CAs to sign end-entity certs, isolating the root from day-to-day operations. 1-5 year validity.
  3. Leaf Certificate (End-Entity): Your website's certificate. Signed by an Intermediate CA. 90 days to 1 year validity (Let's Encrypt: 90 days).

Equivalent OpenSSL Commands

For advanced users who prefer the command line:

# Decode a PEM certificate (text output)
openssl x509 -in certificate.pem -text -noout

# Check certificate expiry date
openssl x509 -in certificate.pem -noout -enddate

# Decode a CSR
openssl req -in certificate.csr -text -noout

# Convert DER to PEM
openssl x509 -inform DER -in certificate.der -out certificate.pem

# Extract certificate from a live server
openssl s_client -connect example.com:443 -showcerts 2>/dev/null | openssl x509 -text -noout

# Verify certificate chain
openssl verify -CAfile chain.pem certificate.pem

Common SSL Certificate Issues

  • Expired certificate: Check "Valid To" date. Set renewal reminders 30 days before expiry. Let's Encrypt certs auto-renew via certbot.
  • Domain mismatch: The domain in the browser URL bar must match the CN or be listed in the SANs. Wildcards (*.example.com) cover one subdomain level.
  • Untrusted issuer: Intermediate CA certificates not included in the server's chain configuration. Check the full certificate chain is served.
  • Weak key size: RSA keys smaller than 2048-bit are deprecated. ECDSA P-256 is recommended for modern deployments.
  • SHA-1 signature: SHA-1 signed certificates are no longer trusted by browsers. Ensure SHA-256 or better is used.

Frequently Asked Questions

What is an SSL certificate vs. a TLS certificate?

SSL (Secure Sockets Layer) is the deprecated predecessor to TLS (Transport Layer Security). Modern HTTPS uses TLS 1.2 or TLS 1.3. The term "SSL certificate" is now colloquially used for what are technically TLS certificates — they are the same X.509 format.

How do I check when my SSL certificate expires?

Paste your certificate into this decoder and check the "Valid To" field. Alternatively, click the padlock icon in your browser's address bar → Connection is Secure → Certificate is valid → View certificate details.

What is a wildcard SSL certificate?

A wildcard certificate covers a domain and all its direct subdomains. A certificate for *.example.com covers www.example.com, api.example.com, and mail.example.com — but not sub.api.example.com (two levels deep).

What are Subject Alternative Names (SANs)?

SANs are additional domains, subdomains, or IP addresses protected by a single certificate. A single cert might have SANs: example.com, www.example.com, api.example.com, and 192.168.1.1. Modern certificates are required to use SANs (the CN field alone is no longer trusted by Chrome since 2017).

Is it safe to paste my certificate here?

Yes. Public certificates are intended to be shared — they contain only public information and your public key. No private key is ever in a certificate file. However, never paste your private key (.key file) into any online tool, including this one.

Related Tools