OpenSSL β’ Verification & Inspection
How to View and Inspect SSL Certificate Details (Subject, Issuer, SAN)
The `openssl x509 -text -noout` command decodes all ASN.1 structures of an X.509 certificate. It reveals which Certificate Authority signed it, all covered domains, signature algorithms, and key usage constraints.
Inspect Certificate Details Command
Safe β’ Read-Only / File Generation
openssl x509 -in cert.pem -text -nooutCustomize:
Domain:
Cert File:
OpenSSL Flags & Options Explained
-in cert.pemInput certificate path-textDecodes and displays all certificate fields in readable format-nooutSuppresses printing of the raw base64 encoded PEM block-subjectPrints only the Subject line (CN, Organization, Country)-issuerPrints only the signing Certificate Authority (CA) identityExecution Steps & Verification
1Display complete certificate breakdown
Inspect all fields and extensions:
openssl x509 -in cert.pem -text -noout2Extract Subject Alternative Names (SANs) only
View all domains and subdomains covered by the certificate:
openssl x509 -in cert.pem -noout -ext subjectAltName3Check Issuer and Fingerprint
View issuing CA and SHA-256 fingerprint:
openssl x509 -in cert.pem -noout -issuer -fingerprint -sha256Common Security Pitfalls & Solutions
- If you get "unable to load certificate", check if the file is in binary DER format. Convert it with: `openssl x509 -inform der -in cert.cer -out cert.pem`.
Prerequisites & Environment
- Local certificate file in PEM format (.crt, .pem, or .cer).
Frequently Asked Questions About Inspect Certificate Details
Frequently Asked Questions
Frequently Asked Questions
Everything you need to know regarding specifications, syntax, and security best practices.
Look under the "X509v3 Subject Alternative Name" extension block for `DNS:domain.com, DNS:www.domain.com` entries.
Related OpenSSL & Security Commands
View All RecipesGeneration & Keys
How to Generate a Self-Signed SSL Certificate with OpenSSL
reqGuide β
Verification & Inspection
How to Check SSL Certificate Expiration Date from Domain or File
s_clientGuide β
Verification & Inspection
How to Verify Private Key Matches SSL Certificate (Modulus MD5 Check)
x509Guide β
Generation & Keys
How to Generate a Certificate Signing Request (CSR) with SAN
reqGuide β
Format Conversions
How to Convert PFX / PKCS#12 to PEM Certificate and Private Key
pkcs12Guide β
Format Conversions
How to Convert CRT, CER or DER to PEM Format
x509Guide β