CSR Decoder & Checker
Paste a PEM Certificate Signing Request to inspect its subject, public key, signature and SANs — entirely in your browser
Examples
Decoding a standard example.com RSA-2048 CSR
-----BEGIN CERTIFICATE REQUEST-----
MIIDLzCCAhcCAQAwgZ4xCzAJBgNVBAYTAlVT...m4rD
-----END CERTIFICATE REQUEST-----Subject: C=US, ST=California, L=San Francisco, O=Example Inc,
OU=Engineering, CN=example.com, emailAddress=admin@example.com
Version: 1 (0x0)
Public key: rsaEncryption — 2048 bit (Modulus c4:05:e6:2a:…; Exponent 65537)
Signature: sha256WithRSAEncryption, 256 bytes
SANs: DNS:example.com, DNS:www.example.com, DNS:api.example.comThe sample CSR bound to the bundled sample button. The decoder walks the PKCS#10 structure client-side and surfaces a complete summary — subject DN, public-key algorithm and size, signature algorithm and length, and the SubjectAltNames that modern browsers actually validate against.
Detect an EC key from a P-256 CSR
-----BEGIN CERTIFICATE REQUEST----- … ecPublicKey, prime256v1 … -----END CERTIFICATE REQUEST-----Subject: CN=example.com
Version: 1 (0x0)
Public key: EC — 256 bit (curve prime256v1, public point 04:8d:… )
Signature: ecdsa-with-SHA256, 64 bytes
SANs: DNS:example.comThe decoder recognises the algorithm OID and reports the named curve rather than a bit length. Use the type label (RSA vs EC) to confirm a CSR matches the cipher suite a CA or load balancer expects before paying for a certificate.
Empty input is handled, not crashed
(empty textarea)Empty state — paste a CSR on the left, or click Load sampleThe decoder treats blank input as a no-op and surfaces the friendly 'paste or load sample' message. Invalid PEM triggers a destructive error block quoting the ASN.1 parsing failure so you can fix the exact line.
About this tool
A Certificate Signing Request is the PKCS#10 message you send to a certificate authority when you need a TLS certificate. Whatever the request contains is what gets issued, so a typo in the common name, a missing SAN or a weak key means a reissue cycle. This decoder parses the request locally and shows what the CA will see.
Input can be a PEM block with the BEGIN CERTIFICATE REQUEST header or raw base64 DER, and RSA and EC keys are supported. Decoding happens on your device, so inspecting a production request is safe — the command-line equivalent is openssl req -text -noout -in server.csr.
How to use this tool
Paste the request
Copy the full PEM block — including the BEGIN and END lines — or the raw base64 DER into the input.
Load the sample
Click Load sample to see a decoded example CSR with subject, key and SAN sections filled in.
Review each section
Check the common name and SAN list against every hostname; confirm the key size and signature algorithm are current.
Copy a summary
Use the copy button to grab a plain-text digest of the decoded fields for your change record or CA ticket.
Use cases
Inspecting a CSR before sending it to a CA
Open the CSR, confirm the Common Name and every Subject Alternative Name match the domains you intend to certify, and verify the algorithm and key size are still considered strong. Cheaper than waiting for a CA to reject the request.
Onboarding a new domain or hostname
When a teammate generates a CSR with a name like api.example.com, paste it in the decoder and confirm the SAN list contains every DNS entry that should appear on the issued certificate — both bare and wildcard form.
Auditing key strength across services
Drop each service's CSR into the decoder and confirm every request uses RSA 2048-bit+, ECDSA P-256/P-384, or a stronger algorithm — and that no service is still on RSA 1024-bit or sha1WithRSAEncryption.
Writing tooling that needs the public key
After decoding, copy the subject DN and the public-key algorithm/size block for documentation or use the Modulus/Exponent detail fields as a fingerprint for inventory scripts.
What the decoder extracts
| Section | Contents |
|---|---|
| Overview | Version, signature algorithm, signature length, public-key algorithm |
| Subject | CN, O, OU, C, ST, L and email attributes |
| Public key | RSA modulus and exponent or EC curve, plus key size |
| SANs | DNS, IP, URI and email entries in SubjectAltName |
| Extensions | Other requested extensions, by name and value |
Common mistakes
Mistake:Sending a CSR with an outdated signature algorithm (sha1, md5) to a CA.
Fix:Modern CAs (and browsers) reject SHA-1-signed CSRs. Regenerate the CSR with -sha256 (OpenSSL) or your PKI tool's modern default and re-decode here to confirm the signature algorithm before submission.
Mistake:Trusting only the Common Name on the certificate.
Fix:Modern browsers validate against the SubjectAltName extension. Use the SAN list from the decoder — not just CN — to confirm every domain and wildcard the certificate will cover.
Mistake:Using a 1024-bit RSA key in a CSR because the legacy app demands it.
Fix:1024-bit RSA has been considered insecure since 2013. Generate a 2048-bit RSA or a 256-bit EC key instead — both fit comfortably in the same Certificate Signing Request format.
Mistake:Pasting a certificate, a public key, or a chain into the CSR decoder.
Fix:The decoder expects the PKCS#10 request (-----BEGIN CERTIFICATE REQUEST-----). A certificate (-----BEGIN CERTIFICATE-----) parses as a different ASN.1 root and will throw a friendly error pointing at the parser.
Mistake:Treating 'signatureLength 256 bytes' as a guarantee that the key is strong.
Fix:Signature length is algorithm-dependent — RSA 2048 produces 256-byte signatures and EC P-256 produces 64-byte signatures. Cross-check signatureLength against the Public key algorithm field rather than reading length in isolation.
Frequently asked questions
What should I check in a CSR before sending it to a CA?
Confirm the common name matches your primary hostname, the SAN list covers every name users will type (including www), organization fields are correct, and the key is at least 2048-bit RSA or an EC curve with a modern signature algorithm.
Does the CSR contain my private key?
No. A CSR carries only the public key and subject details, signed with the private key as proof of possession. The private key itself never leaves the machine that generated it.
Why is my domain missing from the SAN list?
Certificate authorities issue only what the SAN extension contains and ignore the common name, so a hostname left out at generation stays absent from the certificate. Regenerate the request with every name listed.
What key size should a CSR use?
Use RSA 2048 bits or stronger — 3072 for long-lived certificates — or elliptic-curve P-256/P-384, which offers comparable security in fewer bytes. A 1024-bit key is deprecated and should be replaced before submission.
Related guides
Why Your TLS Certificate Chain Breaks (and How to Fix It)
A field guide to 'unable to get local issuer certificate' and friends. What a certificate chain is, why order and intermediates matter, and how to find the broken link in a PEM bundle.
Reading a PEM Certificate: Subject, Issuer, SANs and Expiry
What the fields in a PEM certificate mean, why Subject Alternative Names matter more than the Common Name, and how to decode expiry and key usage.
How to Decode a CSR Before Sending It to a Certificate Authority
Inspect a Certificate Signing Request before you send it off. Learn what the Subject, SAN, public key and signature mean, and why modern browsers ignore CN in favor of the Subject Alternative Name.
References & standards
Related tools
SSL Certificate Checker
Analyze SSL/TLS certificates for any domain, check expiration dates, certificate chains, and security details
SSH Key Pair Generator
Generate RSA, ECDSA P-256 or Ed25519 SSH key pairs with OpenSSH public format and SHA256 fingerprint
TLS Handshake Simulator
Educational step-by-step TLS 1.2 handshake animation — no network calls