---
title: "CSR Decoder"
date: 2026-11-24
author: "Sofia Ramirez"
featured_image: "https://sqmagazine.co.uk/wp-content/uploads/2026/10/csr-decoder.jpg"
---

# CSR Decoder

This free CSR decoder reads a certificate signing request and returns its common name, subject alternative names (SANs), key and signature algorithm. It reads the request per PKCS #10, published by the IETF, and checks it against public CA rules. The sample request for www.example.com carries **2 SANs** and an ECDSA P-256 key. Nothing you enter reaches our server.

  CSR Decoder Reset 

 Showing what you entered last time. Reset

 Certificate signing request -----BEGIN CERTIFICATE REQUEST----- MIIBYDCCAQYCAQAwajELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWEx FjAUBgNVBAcMDVNhbiBGcmFuY2lzY28xFDASBgNVBAoMC0V4YW1wbGUgSW5jMRgw FgYDVQQDDA93d3cuZXhhbXBsZS5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNC AASiw1uA60ObHUCy8MV3B833IiPbofA25R6JbB6CSTF1ZRrAHUFd3GovFsL2xYev fvtd6a57AMzgP6/7JnY4yVTXoDowOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAe gg93d3cuZXhhbXBsZS5jb22CC2V4YW1wbGUuY29tMAoGCCqGSM49BAMCA0gAMEUC IG+SRHWanL7KaaxpxXJrnOPCfoM/XGfdvjRZTGsZ1jyXAiEA/4IYiM71CA6xwuXP Gi1sN3FEtAtK3tYJAWxvPzfUpHg= -----END CERTIFICATE REQUEST----- 

PEM or bare base64. Decoded in this page: never sent, saved or put in the share link.

 

  

Common name

www.example.com

 Copy 

The request for www.example.com carries 2 SANs and an ECDSA P-256 key.

 

 Common namewww.example.com

Subject alternative nameswww.example.com, example.com

Public keyECDSA P-256

Public key SHA-256 fingerprint08:7C:1D:84:43:3D:29:34:47:36:B6:8C:93:B3:C3:89:36:58:55:43:58:94:DB:3A:15:5C:99:54:0E:A2:7E:7E

Signature algorithmECDSA with SHA-256

Signature checkValid: signed by the key in the request

CheckNo problems found in the fields a CA checks first.

SubjectC=US, ST=California, L=San Francisco, O=Example Inc, CN=www.example.com

Number of SANs2

Key size (bits)256

  Copy all details Download CSV  

 

 

   

Every field in the request

 | Field | Value |
|---|---|

 

 

How this is calculated

How it worksThe request is decoded by this page's own DER reader, following the format in [RFC 2986 (PKCS #10) (opens in new window)](https://www.rfc-editor.org/rfc/rfc2986); nothing is uploaded. The check covers the fields a public CA looks at first, per the CA/Browser Forum Baseline Requirements: RSA keys of at least 2,048 bits or ECDSA on P-256, P-384 or P-521, a common name that also appears among the SANs, and a SHA-2 signature. Key usage, extended key usage and basic constraints are decoded by value, with the names OpenSSL prints. The request's own signature is checked against the public key it carries with your browser's Web Crypto API, so a request edited after signing is flagged, and the key's SHA-256 fingerprint is taken over its SubjectPublicKeyInfo, the value openssl pkey -pubin -outform der | openssl dgst -sha256 prints. A challenge password, if present, is noted but never shown.

Not coveredPKCS #10 requests only, not certificates or keys. Checks RSA, ECDSA (P-256, P-384, P-521) and Ed25519 signatures; RSA-PSS, MD5 and Ed448 are not checked.

Privacy**What you enter never reaches our server.** It is processed on your device, inside this page.

CorrectionsReport a wrong result to [media@sqmagazine.co.uk](mailto:media@sqmagazine.co.uk?subject=Correction%3A%20CSR%20Decoder); every report is reviewed and confirmed errors are corrected. Include the inputs and the answer you expected. With your permission, we thank you by name on this page.

FeedbackHow useful was this tool? 



 The figures shown are the worked example. Enable JavaScript to calculate with your own numbers.

  

 ## How to Use the CSR Decoder

The CSR decoder takes one input, the request itself. It decodes the request as soon as you stop typing. A request usually arrives in PEM form: base64 text between a BEGIN line and an END line, the textual format the IETF set for certificate requests.

1. Copy the whole request, from the `—–BEGIN CERTIFICATE REQUEST—–` line to the matching END line.
2. Paste it into “Certificate signing request”. Bare base64 without the two lines works too. So does the older `NEW CERTIFICATE REQUEST` label, which the IETF’s [RFC 7468](https://www.rfc-editor.org/rfc/rfc7468) notes is also in wide use.
3. Start with “Common name”, “Subject alternative names”, “Public key” and “Signature algorithm”.
4. Read “Check”. It lists every problem it found, or says none turned up.
5. Use “Subject”, “Number of SANs” and “Key size (bits)” for the detail. On the sample, they read the full subject, **2** SANs and **256** bits.

The table, “Every field in the request”, lists each subject attribute, each SAN, the key, the signature and any requested extensions. “Copy” puts the common name on your clipboard, and “Copy all details” copies the results without the pasted request. “Share result” makes a link that never carries your request, so whoever opens it sees the sample. “Download CSV” saves the field table to your device.

Each of those fields sits at a fixed place inside the request.

## How the CSR Decoder Reads and Checks a Request

To decode a CSR, the tool reverses its encoding: base64 back to DER, the binary encoding underneath, then each field in order. Per the IETF’s [RFC 2986](https://www.rfc-editor.org/rfc/rfc2986), the PKCS #10 standard, a request has three parts. They are the certification request information, a signature algorithm identifier, and a digital signature on that information. The request information holds four fields:

- A version number, which shall be 0 for this version of the standard.
- The subject’s distinguished name, the list of name attributes such as country, organization and common name (CN). It appears as “Subject”, with the CN shown as “Common name”.
- The public key info: the key’s algorithm, any curve, and the key itself, shown as “Public key”.
- Optional attributes, including the requested extensions that carry the SANs.

Last comes the signature algorithm, translated from its object identifier (a dotted number that names an algorithm) into a name such as “ECDSA with SHA-256”. For an RSA key, “Key size (bits)” is the bit length of the modulus:

- bits = 8 × (B − 1) + floor(log2(b)) + 1.
- B is the number of bytes in the modulus after any leading zero bytes, and b is the value of its leading byte.
- A modulus of 256 bytes whose leading byte is at least 128 gives 8 × 255 + 7 + 1 = **2,048 bits**.

An ECDSA key takes the curve’s size instead: **256** for P-256, **384** for P-384 and **521** for P-521.

As a CSR checker, the tool then runs tests drawn from the CA/Browser Forum’s Baseline Requirements, version 2.3.0. Those are the rules publicly trusted TLS certificates must meet, published on cabforum.org.

| Check | Flagged when | Baseline Requirements rule |
|---|---|---|
| Key size | RSA key under **2,048 bits** | Section 6.1.5: modulus at least 2048 bits |
| Key type | Ed25519, Ed448, secp256k1 or any key other than RSA or ECDSA on P-256, P-384 or P-521 | Section 6.1.5: No other algorithms or key sizes are permitted |
| SANs present | The request asks for no SANs | Section 7.1.2.7.12: the SAN extension MUST be present |
| Common name | A dotted common name missing from the DNS SANs | Section 7.1.4.3: a common name must contain exactly one entry that is one of the values in the SAN extension |
| Signature hash | The request is signed with MD5 or SHA-1 | No request rule; All objects signed by a CA Private Key fall under section 7.1.3.2 |

*Source: CA/Browser Forum Baseline Requirements 2.3.0; flag conditions from the tool’s check code*

That hash check is the tool’s own caution: its message says some CAs reject an MD5 or SHA-1 request.

Two Baseline Requirements rules sit outside the check. Section 6.1.5 also requires that the modulus size, in bits, is evenly divisible by 8, and the tool doesn’t test that. It also compares the common name with the SANs only when the name contains a dot. In our probe, a request with the common name `my server` came back with No problems found in the fields a CA checks first.

The sample request runs through every one of these steps.

## CSR Decoder Example: www.example.com

The sample request decodes from base64 to **356 bytes** of DER. OpenSSL 3.0.13 reads the same fields from it as the decoder does. Its self-signature check, which tests the signature the requester made with the private key, reports verify OK. Six steps rebuild the result:

1. The version field holds 0, the only value the standard defines. OpenSSL counts versions from one, so it prints Version: 1 (0x0) with the stored value in brackets.
2. The subject holds five attributes, C = US, ST = California, L = San Francisco, O = Example Inc, CN = www.example.com, so “Common name” shows www.example.com.
3. The key uses id-ecPublicKey on curve prime256v1, which is NIST P-256. “Public key” reads “ECDSA P-256”, and “Key size (bits)” reads **256**.
4. One attribute requests a Subject Alternative Name extension with DNS names www.example.com and example.com. “Number of SANs” reads **2**.
5. The signature is ecdsa-with-SHA256, shown as “ECDSA with SHA-256”.
6. P-256 is on the permitted list, SANs are present, the common name matches one of them, and SHA-256 is neither MD5 nor SHA-1. “Check” reports No problems found in the fields a CA checks first.

The summary under the result repeats the essentials: www.example.com, **2** SANs and an ECDSA P-256 key.

A clean check is narrower than it sounds.

## What the Result Means

A clean result means the fields a CA reads early are in order, but it does not mean a CA will issue the certificate.

Under RFC 2986, a CA fulfills a request by authenticating the requesting entity and verifying the entity’s signature. The CA then sets the serial number, validity period, and signature algorithm itself. Under the Baseline Requirements, it also validates every domain name before issuing.

When “Check” lists a problem, generate a new key pair and request rather than editing the old one. The usual fixes:

- A common name missing from the SANs goes back in as a SAN, since the Baseline Requirements tie the two together.
- A request with no SANs needs every name the certificate must cover; otherwise the certificate depends on the CA copying the common name in.
- An RSA key under **2,048 bits** needs replacing with one of at least **2,048 bits**.
- An Ed25519 or secp256k1 key needs replacing with RSA or ECDSA on P-256, P-384 or P-521.

### Decoded Is Not the Same as Verified

This decoder reads fields; it never checks the signature that binds them. To test what that means, we changed one byte of the sample request, turning Example Inc into Exbmple Inc, and re-encoded it without re-signing. OpenSSL reported Certificate request self-signature verify failure. The decoder showed the edited organization, O=Exbmple Inc, and still reported No problems found in the fields a CA checks first.

A request passed through email, a ticket system or a PDF can change without anyone noticing. To verify a CSR’s integrity, run OpenSSL’s `-verify` option, which Verifies the self-signature on the request. The CA runs the same test, so a broken signature fails there too.

What the decoder reads is also all a request ever holds.

## What a Certificate Signing Request Contains

A certificate signing request carries a distinguished name, a public key, and optionally a set of attributes, collectively signed by the entity requesting certification. No private key sits in it. The requester signs the request information with the subject entity’s private key, and the key stays where it was made.

The decoder reads two of the Attribute types for use with PKCS #10 certificate requests that [RFC 2985](https://www.rfc-editor.org/rfc/rfc2985), the PKCS #9 standard, defines:

- The extension request carries information about certificate extensions the requester wishes to be included in a certificate, and the SANs travel inside it.
- The challenge password is a password by which an entity may request certificate revocation, with its meaning left to the CA. The table shows it as “Present (not shown)” and never displays the value.

The sample carries one attribute, an extension request for **2** DNS names. It has no challenge password. Post-quantum algorithms, tracked in our [quantum computing statistics](/quantum-computing-statistics/), are not on the list in section 6.1.5, which says No other algorithms or key sizes are permitted.

## CSR Decoder vs Certificate Decoder

A CSR decoder reads the request you send. A certificate decoder reads what the CA sends back. RFC 2986 has the CA build an X.509 certificate from the distinguished name and public key, the issuer name, and the certification authority’s choice of serial number, validity period, and signature algorithm.

A certificate therefore holds an issuer, a serial number and validity dates that no request has. This decoder handles requests only. If you paste a certificate by mistake, it answers that the block is PEM but not a certificate request, and it refuses any private key block the same way.

## Shorter Certificate Lifetimes Mean More Requests

Version 2.3.0 of the Baseline Requirements shortens how long a certificate may last, so renewals come round more often. Its table of relevant dates lists:

- From 2026-03-15, the maximum validity period of a subscriber certificate is **200 days**.
- On 2026-09-15, the entry reads “Sunset all remaining use of SHA-1 in Certificates and CRLs.”
- From 2027-03-15, the maximum falls to **100 days**.

Teams that generate a fresh key and request at each renewal will run more requests through a check like this one. These certificates secure TLS, the protocol behind HTTPS and the TLS-based tunnels covered in [how VPNs work](/how-vpns-work/).

## How do I check a CSR with OpenSSL?

Run `openssl req -in request.csr -noout -text` to print a request’s fields, and add `-verify` to test its signature in the same command.

OpenSSL’s manual says `-text` Prints out the certificate request in text form. The `-noout` option prevents output of the encoded version of the certificate request. On the sample request, OpenSSL 3.0.13 printed the same subject, key, SANs and signature algorithm as the decoder.

## Is it safe to paste a CSR into an online decoder?

Yes, for the request itself: it holds names, a public key and optional attributes, and nothing in it unlocks your server.

This decoder reads it in your browser, nothing you enter reaches our server, and both the share link and “Copy all details” leave the request out. The one secret a request can hold, a challenge password, is noted and never shown.

A request never needs your private key, so never paste one into any website, decoder or support chat. Treat any page or message that asks for it as a phishing attempt; [how phishing works](/what-is-phishing/) shows the usual patterns.

## Good to Know Before You Use It

The CSR decoder runs in your browser, and nothing you enter reaches our server. It assumes the pasted block is one certificate signing request in PEM or base64. It reads the subject, the public key, the signature algorithm and two attribute types: requested extensions and the challenge password.

The method is a DER reader written for this page, following the PKCS #10 format, with checks drawn from the CA/Browser Forum Baseline Requirements. It decodes requests only, not certificates or private keys, and it does not verify the signature, so an edited request still decodes. A challenge password is noted but never shown, and the CA’s domain validation sits outside the tool.

SQ Magazine publishes this page for information. A clean check helps reduce the risk of a rejected request. It promises no security outcome and doesn’t mean a CA will issue the certificate.

## Conclusion

The sample request for www.example.com decodes to **2 SANs**, an ECDSA P-256 key and an ECDSA with SHA-256 signature, with nothing flagged. Paste your own request before you submit it and fix anything “Check” lists. Then confirm the signature with OpenSSL’s `-verify`. Certificate renewals belong on the same checklist as the rest of [securing a business against cyber attacks](/how-to-secure-your-business-from-cyber-attacks/).

## More Security Calculators

[All security calculators (8) →](https://sqmagazine.co.uk/security-calculators/)

- [   Algorithm Five algorithms  SHA-256    Security In your browser  Hash Generator MD5, SHA-1 and SHA-2 hashes of any text, in your browser.  256Digest length (bits) →   ](https://sqmagazine.co.uk/hash-generator/)
- [   Base score CVSS 3.1  9.8    Security In your browser  CVSS Calculator CVSS 3.1 and 4.0 base scores, with the vector string.  CriticalSeverity →   ](https://sqmagazine.co.uk/cvss-calculator/)
- [   Final URL Example: http://sqmagazine.co.uk  https://sqmagazine.co.uk/ Ends on 200 OK    Network At the network edge  Redirect Checker Every hop a URL takes, with status codes and a verdict.  Every hop and status codeUp to ten redirects →   ](https://sqmagazine.co.uk/redirect-checker/)