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.

Decodes

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

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

The mistakes we see most

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.