Features
- Pure JavaScript ASN.1 DER parser (no external dependencies)
- PEM and raw Base64 input support
- X.509 v1/v2/v3 certificate parsing
- Subject and Issuer Distinguished Name (DN) extraction
- Validity period and expiration checking
- Public key algorithm and size detection
- Subject Alternative Names (SAN) extraction
- Serial number and signature algorithm display
Use Cases
Certificate Inspection
Examine SSL/TLS certificates to verify identity and validity
Debugging HTTPS
Troubleshoot certificate issues in web applications and APIs
Security Audits
Review certificate properties during security assessments
Certificate Management
Analyze certificates before installation or renewal
Supported Formats
PEM Format (Recommended)
Standard PEM-encoded certificate with headers:Raw Base64
Base64-encoded DER without PEM headers:The tool accepts both formats. PEM headers are automatically stripped if present.
Output Format
The tool displays certificate details in a structured format:Examples
- Basic Certificate
- Wildcard Certificate
- Multi-Domain (SAN)
- Self-Signed
Decode a standard SSL/TLS certificate.Input (PEM):Output:
Certificate Fields
Version
| Version | Features |
|---|---|
| v1 | Basic certificate (rare) |
| v2 | Adds unique identifiers (obsolete) |
| v3 | Supports extensions (standard) |
Serial Number
Unique identifier assigned by the Certificate Authority (CA). Displayed in hexadecimal.Signature Algorithm
Common algorithms:sha256WithRSAEncryption- RSA with SHA-256 (most common)sha384WithRSAEncryption- RSA with SHA-384 (higher security)sha512WithRSAEncryption- RSA with SHA-512 (highest security)ecdsa-with-SHA256- ECDSA with SHA-256 (modern, efficient)
Distinguished Name (DN)
The Subject and Issuer fields use DN format:| Component | Name | Description |
|---|---|---|
| CN | Common Name | Domain or entity name |
| O | Organization | Company or organization name |
| OU | Organizational Unit | Department or division |
| C | Country | Two-letter country code (ISO 3166) |
| ST | State/Province | State or province name |
| L | Locality | City name |
CN=example.com, O=Example Inc, OU=IT, C=US, ST=California, L=San Francisco
Public Key
Shows the algorithm and key size:- rsaEncryption (2048 bits) - Standard RSA key
- rsaEncryption (4096 bits) - High-security RSA key
- id-ecPublicKey (256 bits) - Elliptic Curve key (P-256)
- id-ecPublicKey (384 bits) - Elliptic Curve key (P-384)
ECDSA keys provide equivalent security with smaller key sizes: ECC 256-bit ≈ RSA 3072-bit
Subject Alternative Names (SAN)
Modern certificates use SAN extensions to specify valid domains:- DNS: Domain names (
DNS:example.com,DNS:*.example.com) - IP: IP addresses (
IP:192.0.2.1,IP:2001:db8::1) - email: Email addresses (
email:[email protected])
Implementation Details
The tool includes a complete ASN.1 DER parser written in TypeScript:Architecture
Fromlib/tools/cert-decoder.ts:
- Base64 Decode - Convert PEM/Base64 to binary DER
- DER Parser - Parse binary ASN.1 structure
- X.509 Extractor - Extract certificate fields
- DN Formatter - Format Distinguished Names
- OID Resolver - Map OIDs to human names
OID Resolution
Object Identifiers (OIDs) are mapped to readable names:Source Code
Implementation:lib/tools/cert-decoder.ts:1-231Engine integration:
lib/tools/engine.ts:799-802
Common Patterns
Extract from Browser
- Visit HTTPS site in browser
- Click padlock icon → Certificate
- Export as PEM format
- Paste into tool
Extract from Server
Using OpenSSL:Check Expiration
Verify the “Not After” field to ensure the certificate hasn’t expired.Verify Domain Coverage
Check that your domain appears in either:- Subject CN field
- Subject Alternative Names list
Error Handling
Invalid Certificate
Parse Error
Unexpected Structure
Security Notes
What This Tool Does
- ✅ Parses X.509 certificate structure
- ✅ Extracts and displays fields
- ✅ Shows expiration dates
- ✅ Lists Subject Alternative Names
What This Tool Does NOT Do
- ❌ Verify cryptographic signatures
- ❌ Validate certificate trust chains
- ❌ Check certificate revocation (CRL/OCSP)
- ❌ Enforce certificate policies
- ❌ Validate hostname matching
Certificate Types
Domain Validation (DV)
Basic certificates verifying domain ownership:Organization Validation (OV)
Includes organization details:Extended Validation (EV)
Highest validation level with detailed organization info:Related Tools
- Base64 String - Decode Base64-encoded certificates
- Hash Generator - Verify certificate fingerprints
- JWT Debugger - Decode JSON Web Tokens (different format)