Free tool · runs in your browser

CSR and SSL certificate decoder

Decode a CSR or SSL certificate in your browser: subject, SANs, key type and size, signature, validity and fingerprints, with checks before you submit it.

Decode a CSR or certificate

Decoded in your browser only: nothing you paste leaves it, is stored, or is put in the page address. A CSR and a certificate hold only public data; never paste the private key.

On this page

What a CSR contains

A certificate signing request (CSR) is the file you send to a certificate authority to ask for a certificate. Its format is PKCS#10, defined in RFC 2986, and it holds three things: the subject (the name the certificate is for, such as CN=example.com), the public key, and optional attributes. The attribute that matters today is the extension request, which carries the subjectAltName list with every host name the certificate should cover. The whole request is signed with the matching private key, which proves to the CA that whoever sent it holds that key.

What a CSR does not contain is just as useful to know. There is no private key in it, ever: the key stays in the separate file you created at the same time, and a CSR can be shared, pasted into a CA’s form or e-mailed without risk. There are no dates, no serial number and no issuer either. The CA decides those when it signs, and it may drop or change subject fields it does not validate. An X.509 certificate (RFC 5280) is that signed result: the same subject and public key, plus the issuer, a serial number, a validity period and the extensions the CA chose.

How to read the result

The decoder accepts a CSR (BEGIN CERTIFICATE REQUEST or the older BEGIN NEW CERTIFICATE REQUEST), a certificate, or a whole chain pasted at once, and shows each block on its own. The checks at the top of each block come first; the rows below are the decoded fields.

Each check is marked Good, Note, Warning or Problem. A Problem means a public CA will refuse the request, a browser will refuse the certificate, or (for a CSR without subjectAltName) the certificate only works if the CA adds the names for you: a key under 2048 bits, a SHA-1 or MD5 signature, no subjectAltName at all, or a certificate that has expired. A Warning is worth fixing before you submit, such as a common name that is missing from the SAN list. A Note is information only, for example a wildcard name or a self-signed certificate.

FieldWhat to look for
SubjectThe common name (CN) and, for OV and EV certificates, the organization. A CA only keeps the fields it can verify.
Subject alternative namesEvery host name the certificate must work for, including www if the site answers there. This is the list browsers check.
Public keyRSA of 2048 bits or more, or ECDSA on P-256, P-384 or P-521. Those are the only keys public CAs may certify.
Signature algorithmSHA-256 or stronger. SHA-1 and MD5 are refused.
Valid from, valid untilCertificates only. Days left, and the total validity period.
Key usage, extended key usageA server certificate needs TLS Web Server Authentication if the extended key usage is present at all.
FingerprintsA hash of the whole certificate in its binary (DER) form, used to tell two certificates apart. For a CSR it identifies the request only.

A wildcard such as *.example.com covers exactly one level: shop.example.com, but neither a.shop.example.com nor example.com itself, which is why wildcard requests usually list the bare domain as a second name.

The same with openssl

To read a CSR on the server where you made it, and check its signature at the same time:

Linux · macOS
openssl req -in example.csr -noout -text -verify

For the example CSR on this page it prints the following (the hex of the modulus and the signature is shortened):

Certificate request self-signature verify OK
Certificate Request:
    Data:
        Version: 1 (0x0)
        Subject: CN = example.com
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:9b:74:7e:cc:cd:2b:c1:f0:6a:40:3a:e0:05:c4:
                    ...
                    54:d1
                Exponent: 65537 (0x10001)
        Attributes:
            Requested Extensions:
                X509v3 Subject Alternative Name:
                    DNS:example.com, DNS:www.example.com
    Signature Algorithm: sha256WithRSAEncryption
    Signature Value:
        57:a3:29:d9:6a:e0:a4:fc:80:52:75:31:d7:96:d6:9e:d7:cd:
        ...

“Version: 1 (0x0)” is correct: PKCS#10 has only version 1, stored as 0. For a certificate, the full dump is openssl x509 -in cert.pem -noout -text. The short form is easier to read:

Linux · macOS
openssl x509 -in cert.pem -noout -subject -issuer -dates -ext subjectAltName
subject=CN = example.com
issuer=CN = example.com
notBefore=Nov 15 01:06:13 2026 GMT
notAfter=Nov 12 01:06:13 2036 GMT
X509v3 Subject Alternative Name:
    DNS:example.com, DNS:www.example.com

The SHA-256 fingerprint, which matches the one the decoder shows for the example certificate:

Linux · macOS
openssl x509 -noout -fingerprint -sha256 -in cert.pem
sha256 Fingerprint=23:AD:CD:52:12:6D:AB:0E:AD:00:E2:96:71:1E:1C:91:AF:37:33:C2:F5:EC:C4:C0:AF:DA:3A:F4:C1:76:B0:82

More commands for keys, certificates and live servers are collected in openssl commands.

Creating a CSR with SANs in one command

Since OpenSSL 1.1.1, -addext puts the subjectAltName into the request without a configuration file:

Linux · macOS
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr \
  -subj "/CN=example.com" \
  -addext "subjectAltName=DNS:example.com,DNS:www.example.com"

It writes two files. example.key is the private key: keep it on the server, readable by its owner only (chmod 600 example.key). example.csr is what you give the CA. -nodes (OpenSSL 3.0 also calls it -noenc) leaves the key unencrypted, which a web server needs to start without a passphrase prompt. For a smaller and faster ECDSA key, replace -newkey rsa:2048 with -newkey ec -pkeyopt ec_paramgen_curve:P-256. To renew with the key you already have, use -key example.key instead of -newkey and -keyout.

Why a CA rejects a CSR

Public CAs follow the CA/Browser Forum Baseline Requirements, and most rejections trace back to them:

  • Key too small or of the wrong type. Section 6.1.5 allows RSA with a modulus of at least 2048 bits (a multiple of 8) and ECDSA on P-256, P-384 or P-521, and states that no other algorithms are permitted. An Ed25519 CSR is valid PKCS#10, but no public CA can issue a TLS certificate for it.
  • A weak or known key. CAs must reject keys from the Debian weak key list, keys affected by ROCA and keys reported as compromised (section 6.1.1.3). Reusing a key that was reported compromised to the same CA fails too.
  • SHA-1 or MD5 signature on the request. The request’s signature does not end up in the certificate, but many CAs refuse weak hashes on principle. Current OpenSSL signs with SHA-256 by default.
  • Names missing from the SAN list. Chrome stopped falling back to the common name in version 58 (2017), and Apple platforms have required the SAN list since iOS 13 and macOS 10.15. The Baseline Requirements say that a CN, if present, must repeat a name from the subjectAltName. Some CAs copy the CN across for you, internal CAs and many tools do not.
  • Fields the CA cannot validate. Since 1 September 2022, public CAs may not put an organizational unit (OU) in a certificate, and a DV certificate keeps no organization or address. Those fields are dropped, or the order is held until they are removed.
  • A name the account cannot prove. Every host name in the request has to pass domain validation, and a typo in one name stops the whole order.

Certificates get one more check: their lifetime. Under section 6.3.2 of the Baseline Requirements, a publicly trusted server certificate issued before 15 March 2026 may be valid for at most 398 days, the limit since 1 September 2020. Ballot SC-081 lowered that to 200 days for certificates issued from 15 March 2026, and it drops to 100 days from 15 March 2027 and 47 days from 15 March 2029. The decoder applies the limit that held on the certificate’s start date, and skips it for self-signed and CA certificates, which the rule does not cover.

Once the certificate is installed, the SSL checker tests what the server actually sends, chain included.

If clients then fail to connect, SSL handshake failed walks through the errors that a missing chain, an expired certificate or a name mismatch produce.

Frequently asked

What is a CSR?

A certificate signing request: the file you send a certificate authority to get an SSL/TLS certificate. Defined as PKCS#10 in RFC 2986, it holds the subject (such as CN=example.com), the public key and the requested extensions, above all the subjectAltName list of host names, and it is signed with the matching private key to prove you hold it. The CA adds the issuer, serial number and validity dates when it signs.

Does a CSR contain the private key?

No. The private key is written to a separate file when the CSR is created (example.key next to example.csr) and never leaves it. A CSR holds only the public key and the names, so it is safe to paste into a CA's order form or into this decoder. A block that starts with BEGIN PRIVATE KEY is the key itself and should stay on the server.

How do I check the SANs in a CSR?

Paste it here and read the Subject alternative names row, or run openssl req -in example.csr -noout -text and look under Requested Extensions for X509v3 Subject Alternative Name. Every host name the certificate must cover, www included, has to be in that list: browsers do not look at the common name.

How do I decode a certificate with OpenSSL?

openssl x509 -in cert.pem -noout -text prints every field; openssl x509 -in cert.pem -noout -subject -issuer -dates -ext subjectAltName prints the short version, and openssl x509 -in cert.pem -noout -fingerprint -sha256 prints the fingerprint this page shows. For a CSR, use openssl req -in example.csr -noout -text -verify.

Why does the CA reject my CSR?

Most often the key is too small (RSA under 2048 bits) or of a type public CAs may not certify (only RSA and ECDSA on P-256, P-384 or P-521 are allowed, so not Ed25519), the request is signed with SHA-1 or MD5, a host name is missing from the subjectAltName, or the key is on a list of known weak or compromised keys. The decoder flags the first two, and a missing subjectAltName or a common name that is not in it.

Is anything I paste sent to a server?

No. The CSR or certificate is decoded by JavaScript in your browser, and the fingerprints are computed with the browser's own Web Crypto. Nothing is uploaded, stored or written into the page address, so the page also works for requests that are not public yet.

More free tools

All tools