Skip to content
Sealpaste

Delete all recent work?

This removes the 0 items saved in this browser. Your settings stay.

Stop saving recent work?

New work won't be saved in this browser. The 0 items already saved can stay or go.

CSR Decoder

Request

Paste a CSR to decode it

Decoded
Ready
Runs in your browser. Nothing you paste is uploaded unless you share it.

Decode a certificate signing request before you send it to a CA: subject, names, extensions, key size and signature

Paste a certificate signing request to check its subject, the names and extensions it asks for and its key before you submit it. When you paste the certificate too, the page shows whether it has the same key.

How to use it

  1. Paste the CSR, from -----BEGIN CERTIFICATE REQUEST----- to the END line.
  2. Check the subject, the requested names (SANs), the key and the signature, and read What a CA will say.
  3. Got the certificate back? Paste it under the CSR: both say “same public key” when they match.

Example

Check a request

Input
-----BEGIN CERTIFICATE REQUEST-----
MIIC/DCCAeQCAQAwZjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWEx…
Result
Subject: C=US, ST=California, L=San Francisco, O=Example Inc, CN=example.com
Names: DNS: example.com, DNS: www.example.com, IP: 192.0.2.1, Email: ops@example.com
Public key: RSA, 2,048 bits

The page’s sample, a test request.

OpenSSL errors on a CSR

OpenSSL saysUsual cause
unable to load X509 request from fileThe file is not a CSR: a key, a certificate, or text with the BEGIN line missing. Paste it here: the page says what it is.
Could not find or decode certificateopenssl x509 was given a CSR; read it with openssl req instead.
Certificate request self-signature verify failureThe CSR was changed after it was signed, or cut while copying: make it again from the key.
openssl req -in request.csr -noout -text -verify

Why check a CSR before you submit it

A certificate authority issues what the request asks for. A missing www name, a typo in a host name or a key that is too small means a new request and, with some authorities, waiting for validation again.

The requested names live in the request’s extension request attribute; this page shows them next to the subject, with every other extension the request asks for.

The request’s signature is checked against its own public key, which proves it wasn’t changed after it was made. What a CA will say then lists, by the CA/Browser Forum’s Baseline Requirements, what the authority refuses (Fix), what it changes when it issues (The CA changes it) and what is worth knowing: a common name missing from the names, underscores, a trailing dot, internal names such as .local or .corp, a wildcard that isn’t the whole leftmost label, private IP addresses, the key’s size, exponent and curve, and RSA primes so close the key factors at once (Fermat’s method).

Sources: RFC 2986 (PKCS #10), RFC 2985 §5.4.2, CA/Browser Forum Baseline Requirements

The same check with OpenSSL

On a machine with OpenSSL, these commands print what this page shows. The page works where OpenSSL isn’t installed.

To seeCommand
A certificateopenssl x509 -in cert.pem -noout -text
A request (CSR)openssl req -in request.csr -noout -text
The SHA-256 fingerprintopenssl x509 -in cert.pem -noout -fingerprint -sha256
A DER file as PEMopenssl x509 -inform der -in cert.der -out cert.pem
Certificates inside a .p7bopenssl pkcs7 -in bundle.p7b -print_certs

Sources: OpenSSL x509 manual

Questions

Is the CSR uploaded?
No. Everything runs in your browser, so your request stays on your device. Nothing you paste is uploaded unless you share a result, which is locked with your password first.
Does a CSR contain the private key?
No. It holds the public key and is signed with the private key, which stays where the request was made. You need that private key to install the certificate you get back.
How do I know a certificate matches my CSR?
Paste both. When they hold the same public key, each says “same public key as” the other; the key pin is the same too.
What key size should a CSR have?
RSA 2,048 bits or more, or an EC key on P-256 or P-384. Certificate authorities don’t issue public certificates for RSA keys under 2,048 bits.
Why would a CA refuse my CSR?
Most often a name it can’t issue for: an internal name such as server.local, a name with an underscore, a private IP address, or a wildcard in the wrong place. A key that is too small, on an unusual curve or with a bad exponent is refused too. What a CA will say lists each one it finds, marked Fix.
Can I paste a private key here?
The page names a private key block when it finds one and doesn’t read it. A private key never needs to leave the server it belongs to, so keep it out of chats, tickets and websites.

Related tools