Skip to content

CSR decoder

Free, no sign-up Runs in your browser

Decode a PEM certificate signing request in your browser: the subject, requested alternative names, key algorithm and size, and the signature algorithm.

It is read in your browser and is not sent anywhere.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the CSR decoder

  1. Paste the request, starting with -----BEGIN CERTIFICATE REQUEST-----.
  2. Check the subject and every requested alternative name.
  3. Check the key algorithm and size.
  4. Fix what the findings point at, make a new request if needed, then send it to your CA.

About this tool

A certificate signing request is what you send to a certificate authority to get a certificate. It holds your public key, the names you want the certificate to cover, and a signature made with the matching private key, which proves you hold it. The format is PKCS#10, encoded in DER and wrapped in Base64 between BEGIN CERTIFICATE REQUEST lines.

Decoding a request before you submit it catches the mistakes that cost a reissue: a misspelled host name, a missing www or wildcard name, a 1024-bit key left over from an old script, or names placed only in the common name. Clients match host names against the subject alternative names, so those are the ones to check. This tool shows them with the key algorithm and size and the signature algorithm.

A request holds no secret: the private key stays on the machine that made it, and the request is safe to send. Still, a CA is free to ignore or change what you asked for, so decode the certificate you receive as well. The checks here are a short set of rules for weak keys, old hashes and missing names, and do not replace reading the request.

Sources

Questions

What is a CSR?

A certificate signing request: a file with your public key and the identity you want certified, signed with your private key. The certificate authority checks that you control the names and issues a certificate for that key.

Does a CSR contain the private key?

No. It contains the public key and a signature made by the private key. The private key never leaves your machine and must not be sent to the CA or anyone else.

How do I decode a CSR with OpenSSL?

Run openssl req -in request.csr -noout -text. It prints the subject, the public key and the requested extensions, the same fields this page shows.

How do I add subject alternative names to a CSR?

With OpenSSL 1.1.1 or later, add -addext "subjectAltName=DNS:example.com,DNS:www.example.com" to the openssl req command. Older versions need a config file with a req_extensions section.

Related tools