How to Create and Check a CSR Before You Order an SSL Certificate

What a certificate signing request contains, how to generate one with OpenSSL, and a checklist to verify SANs, key size and key match before the CA issues it.

Updated September 29, 2026 6 min read

Use the free CSR DecoderDecode a certificate signing request and verify its SANs, key and signature

Ordering an SSL certificate starts with a certificate signing request (CSR): a small file you paste into the certificate authority's order form. If the CSR is wrong, the certificate will be wrong too. A missing www name, a key that is too short or a request made on the wrong server all mean a reissue, and with organisation-validated certificates that can mean repeating the validation paperwork.

This guide explains what a CSR contains and what it does not, shows how to generate one correctly with OpenSSL, and gives a short checklist you can run through before you click submit.

What a CSR is (and what it is not)

A CSR is a request, signed by you, that says: "Please issue a certificate binding this public key to these names." It contains:

  • The subject: distinguished name fields such as Country (C), Organisation (O) and Common Name (CN).
  • The public key: for example RSA 2048 or ECDSA P-256.
  • Requested extensions: most importantly the Subject Alternative Names (SANs), and sometimes key usage.
  • A self-signature made with the matching private key, which proves the requester holds that key and that the request was not altered.

A CSR does not contain the private key. The private key is created alongside the CSR and must stay on your server (or in your key vault). If you ever receive a "CSR" that begins with BEGIN PRIVATE KEY, stop: that is the secret half and should not be sent anywhere.

It also helps to know what the CA will ignore. For domain-validated certificates many CAs discard the organisation fields and keep only the domain names. For organisation or extended validation, the CA takes the organisation details from its own vetting, not blindly from your CSR. The parts that almost always carry through are the public key and the requested hostnames.

Generate a CSR with OpenSSL

Most control panels and cloud consoles have a "Generate CSR" button, which is fine. When you create one yourself, OpenSSL 1.1.1 and later can add SANs directly on the command line:

# New 2048-bit RSA key plus a CSR with two hostnames
openssl req -new -newkey rsa:2048 -nodes \
  -keyout example.key -out example.csr \
  -subj "/C=GB/O=Example Ltd/CN=example.com" \
  -addext "subjectAltName=DNS:example.com,DNS:www.example.com"

# ECDSA P-256 alternative (smaller, faster key)
openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes \
  -keyout example-ec.key -out example-ec.csr \
  -subj "/CN=example.com" \
  -addext "subjectAltName=DNS:example.com,DNS:www.example.com"

On Windows Git Bash, prefix the command with MSYS_NO_PATHCONV=1 so the /C=GB/... subject is not rewritten as a file path. The -nodes option leaves the private key unencrypted, which most web servers need; protect the file with strict permissions instead.

To inspect and verify the result locally:

openssl req -in example.csr -noout -text     # show all fields
openssl req -in example.csr -noout -verify   # check the self-signature

Check a CSR with our decoder

The CSR Decoder parses the request and verifies its signature in your browser. A CSR only holds public data, but nothing is uploaded either way.

  1. Paste the PEM text starting with -----BEGIN CERTIFICATE REQUEST----- into PEM certificate signing request, or click Open file to load a .csr, .pem or DER file.
  2. Look at the badge. Signature valid means the request was signed by the matching private key and has not been modified since.
  3. Review Subject, Requested SANs, Public key and Signature algorithm in the table.
  4. Read the Checks before you submit it to a CA list. It flags RSA keys under 2048 bits, SHA-1 signatures, a missing SAN list, a Common Name that is not also a SAN, and a clear-text challenge password.
  5. Note the Public key SHA-256 value if you need to match the CSR to a private key (see below).

If you accidentally paste an issued certificate rather than a CSR, the decoder tells you; use the SSL Certificate Decoder for certificates.

The pre-submission checklist

Check Why it matters
Every hostname is in the SAN list Browsers only match SANs; a missing name means a reissue
Bare domain and www both present (if you serve both) The most common omission
RSA at least 2048 bits, or ECDSA P-256/P-384 Public CAs reject shorter RSA keys
Signature uses SHA-256 or stronger SHA-1 signed requests are widely rejected
No challenge password It is stored in clear text inside the CSR and modern CAs do not use it
Generated on (or for) the right server The certificate will only work with the matching private key

Confirm the CSR matches your private key

When several people or servers are involved, it is easy to submit a CSR whose private key lives somewhere else, or was deleted. Compare public key hashes:

# Hash of the public key inside the private key file
openssl pkey -in example.key -pubout -outform DER | openssl dgst -sha256

# Hash of the public key inside the CSR
openssl req -in example.csr -pubkey -noout | openssl pkey -pubin -outform DER | openssl dgst -sha256

If the two hashes are identical, and the first also matches the Public key SHA-256 in the decoder, the pair belongs together.

Troubleshooting CA rejections

"The CSR contains an invalid or weak key"

The key is RSA 1024 or an unusual curve. Generate a new key and CSR; you cannot upgrade a key inside an existing CSR.

"Domain not found in CSR" or missing names on the certificate

Some CAs build the SAN list from the order form rather than the CSR, and others do the opposite. Put every name in both places, and check the issued certificate before installing it.

Garbled or rejected paste

Paste the whole block including the BEGIN and END lines, without extra spaces at the start of lines. If a colleague sent the file through a chat tool that reformatted it, ask for the file itself.

"Signature invalid"

The CSR was edited after it was created, or the text was corrupted in transit. A CSR is signed, so it cannot be fixed by hand; generate a new one with the original private key.

Choosing keys and storing them

If you are also creating keys outside OpenSSL, the RSA Key Pair Generator produces PEM keys in the browser, and the SSH Key Generator covers SSH keys, which are a separate format and not used for TLS certificates. Whatever you use, back up the private key securely before the certificate is issued; losing it means starting the order again.

Frequently asked questions

Can I reuse an old CSR for a renewal?

Technically yes, if the key is still secure and meets current requirements, but many teams generate a new key and CSR at each renewal. Rotating the key limits the damage if an old key was ever exposed.

Is it safe to send a CSR by email?

Yes. It contains only public information. Never send the private key that was generated with it.

Why do CAs ignore my organisation name?

Domain-validated certificates only prove control of the domain, so the CA leaves out organisation details. For OV and EV certificates, the CA uses the details it verified itself.

Can I edit the SANs in an existing CSR?

No. Any change breaks the signature. Create a new CSR with the same or a new private key and the corrected name list.

What does "Signature valid" not tell me?

It does not mean a CA has approved the request or that you control the domains. It only proves the CSR is intact and was signed by the key it contains.

Try it now: CSR Decoder

Loading tool…