Tools / CSR / certificate decoder
CSR & SSL certificate decoder
Paste a PEM Certificate Signing Request or an X.509 certificate and read back exactly what's in it — before you hand the CSR to a CA, or to sanity-check what a CA issued.
More free checks
Run a full security scan or speed test on your site, or try a related tool.
Related free tools
Decodes
- CSR: subject (CN, O, OU, L, ST, C, email), requested SANs, public key algorithm and size.
- Certificate: subject and issuer, validity window and days remaining, SANs, key, signature algorithm (flags SHA-1), serial, SHA-256 / SHA-1 fingerprints.
Privacy
The PEM is parsed by openssl on our server and immediately discarded — nothing is
stored, logged to disk, or sent to any certificate authority or third party. A CSR contains
only a public key and your requested identity; it is safe to decode. Never paste a
private key anywhere.
Common Name is dead; Subject Alternative Name is what counts
The most frequent cause of a certificate that validates in openssl and fails in
a browser. Modern browsers ignore the Common Name entirely for hostname
matching — Chrome dropped support in 2017 and the others followed. The hostname must
appear in the Subject Alternative Name extension.
So a CSR with CN=example.com and no SAN produces a certificate that throws
ERR_CERT_COMMON_NAME_INVALID for every visitor. If you are generating a CSR by
hand with openssl req, the SAN does not come from the CN — you have to pass
it explicitly, and forgetting is the default outcome. Decode the CSR before you submit it and
confirm the SAN list contains every hostname you intend to serve, including the bare domain
and www if you use both.
What a CSR actually contains
- Your public key — never the private key. This is why a CSR is safe to email, paste or post publicly.
- The subject — CN, O, OU, L, ST, C. Public CAs now ignore or reject most of these for domain-validated certificates; only organisation-validated and extended-validation products use the organisation fields, and they verify them independently rather than trusting your CSR.
- Requested SANs — the field that matters.
- A self-signature proving you hold the matching private key.
A practical consequence: for an ordinary DV certificate, getting the O/OU/L fields "right" is wasted effort. Getting the SAN list right is the whole job.
Reading an issued certificate
- Validity window. Publicly trusted TLS certificates are capped at 398 days, and the industry is moving towards much shorter lifetimes still. Anything longer than that from a public CA is not publicly trusted; anything with years of validity is a private or self-signed certificate.
- Signature algorithm. SHA-1 has been untrusted for years and is flagged here. SHA-256 is the norm.
- Key type and size. RSA below 2048 bits is rejected by public CAs. ECDSA P-256 offers comparable strength with a much smaller key and faster handshake, and is worth preferring for new certificates.
- Issuer. This is the certificate that signed yours, and it is the start of the chain your server must serve alongside it — see below.
- Fingerprints. Useful for pinning, for matching a deployed certificate against the one you were issued, and for confirming two servers are serving the same one.
The mistakes we see most
- A missing intermediate. The single most common TLS deployment fault. The
certificate is valid and the server sends only the leaf, so clients that do not already hold
the intermediate fail. Browsers often paper over it by fetching the missing link; mobile
apps, API clients and
curldo not. It is invisible in a browser and broken everywhere else. - Chain in the wrong order — leaf first, then intermediates, never the root (which the client already has, and which only adds bytes).
- A CSR regenerated after issuance. The certificate is bound to the public key in the CSR that produced it. Generate a new key and the issued certificate no longer matches.
- Wildcard expectations.
*.example.comcoversa.example.combut notexample.comitself, and nota.b.example.com— one label only. List the apex separately. - Forgetting that every public certificate is published. Certificate Transparency logs are public and searchable, so internal hostnames in a SAN list become public reconnaissance the moment the certificate is issued. Use a wildcard or a private CA for internal names.
Related checks: TLS / SSL checker to see what a server actually serves — including whether the intermediate is present — and DNS records lookup for the CAA records that control which CAs may issue for your domain at all.
Frequently asked questions
What is a CSR?
A certificate signing request: a block of text containing your public key and the details you want in the certificate — domain names, organisation and country. You send it to the certificate authority, which signs it and returns the certificate.
How do I generate a CSR with OpenSSL?
Run openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr and answer the prompts. Keep example.key private on the server; only the .csr file goes to the CA.
What key size should I request?
RSA 2048-bit is the minimum public CAs accept, and 3072-bit gives more margin. ECDSA P-256 is smaller, faster and equally strong, and every current browser supports it.
Can I decode an issued certificate as well?
Yes. Paste a PEM certificate (-----BEGIN CERTIFICATE-----) to see its issuer, validity dates, days remaining, names and fingerprints. To check the certificate a live site is serving, use the SSL checker.