CSR Decoder
: Decode a certificate signing request and check its subject, domain names, key and signatureCSR Decoder
Paste a PEM certificate signing request (CSR) and read what you are about to send to a certificate authority: the subject, the hostnames in the subject alternative names, the public key, and whether the request's signature checks out. Use it to catch a missing SAN, a weak key or a wrong name before the CA does.
How to decode a CSR
- Paste into
Certificate signing request: one or more-----BEGIN CERTIFICATE REQUEST-----blocks, or bare base64 DER. PressOpen fileor drop a.csr,.pem,.reqor binary.derfile (shown as PEM), or press the Example button. - Check the line under
Decoded:1 CSR · no warnings, a count of warnings, or the reason the input could not be read. - Each CSR gets a card headed by its common name, then
Signature valid, orSignature invalid,Signature not checkedorSignature could not be checkedfollowed by the reason, then its warnings (errors before warnings before notes) and its fields:Subject, one row per name part,Subject alternative names,Public key,Public key SHA-256(hex and Base64),Signature algorithm,SignatureandVersion. - Press
Copy allfor every CSR as tab-separated text,Copy PEMon a card for its normalised PEM, or the copy button on a row for the subject, the SANs or a fingerprint.
Example
The CSR behind the Example button, decoded by the same parseCsrs function the page uses. It raises no warnings. The page also shows the Public key SHA-256 fingerprint and the signature check, which use WebCrypto and are left out here; the signature on this CSR verifies as valid.
-----BEGIN CERTIFICATE REQUEST-----
MIICwzCCAasCAQAwPDEYMBYGA1UEAwwPc2FtcGxlLnRvbXouZGV2MRMwEQYDVQQK
DApFeGFtcGxlIENvMQswCQYDVQQGEwJBVTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAKtLcfZR/SKQ0DKREXdxQHWL6l+S0pu5Fls5buQqJyaeNbsovQi6
eTybMY3oucqlUxsZgDcLBV9COXc3JGYNW4eaSA6gygYw075/DXUNs815ZPNwsZxI
TSO1JGAC2MDuYwc0Ip6hlFTEpoax7VPEZNFuGfPblFyVNyS/Zqt56qwSUH8JlbOB
EsoNg6HfDr5gBQGgZDB/pAPpmX2ZCj5O0CCMVZRCYErJRwNcJxqjAPMZ0ARB2WzE
GckH6fzVSNwv8yHubCjDuDAA87DxZfpswrWBQs8KoJHVF5uS+QlbKXAlxlwZxNjc
Co8/tFza1Yn05t/XYLS+2PRkUk67wKDhdD0CAwEAAaBCMEAGCSqGSIb3DQEJDjEz
MDEwLwYDVR0RBCgwJoIPc2FtcGxlLnRvbXouZGV2ghN3d3cuc2FtcGxlLnRvbXou
ZGV2MA0GCSqGSIb3DQEBCwUAA4IBAQA6hmDK8TLABdcmVXl0s/0UbkSh35b02SlD
fZgkxVU9HV68+oxrdoD/BJsio5H+JZB5L7/NLLvmirXsZSpx9wtbAWZfCEqtiUiI
BlXYjRIIpfzD0MvXJkdH2gMkgkF6L15mezysFZBVnx6Q2RBwsjfrXVI/k126+Dh/
WsB05nD2Ws1DByn2qdqAcRH8Sp62VDU5ghFFCZmfNgGvvnrSvOid0uZxYELy6diV
uY0IJP8B6J3A5duG0xSarMAphUeLKh9xcCedTBIQY9Vsdk8BI4ulTgbJGJ57RsWj
uKiHAsDmX0fPXRipgaP91r07+eIiT7gIjXbZNqJTvfr7Mq2Q+jjH
-----END CERTIFICATE REQUEST-----[1] sample.tomz.dev
subject CN=sample.tomz.dev, O=Example Co, C=AU
alt names DNS:sample.tomz.dev, DNS:www.sample.tomz.dev
public key RSA 2048-bit
signature algorithm SHA-256 with RSA
version 1 (encoded 0)
extensions subject alternative name
warnings noneDetails
- Decoded: the subject as one line (
CN=…, O=…, C=…) and as separate rows; subject alternative names typed asDNS,IP,emailorURI; the public key (e.g.RSA 2048-bit, an EC curve, Ed25519); the signature algorithm; requested key usage, extended key usage and basic constraints; any other requested extensions by name and OID, markedcriticalwhen they are; and other attributes such as Microsoft template names. Extensions in the MicrosoftextensionRequestattribute are read as well. - Warnings, from the code: an RSA key under 2048 bits (error); an MD2, MD4 or MD5 signature (error) or SHA-1 (warning); an EC curve other than P-256, P-384 or P-521, and Ed25519 or Ed448 keys, which public TLS CAs do not take (warnings); no Common Name and no SANs (error); a CN that is not one of the SANs, or no DNS or IP SANs at all, because browsers match SANs and ignore the CN (warnings); a malformed wildcard such as
a*.example.comor a wildcard directly under a TLD (errors); and a non-hostname DNS value (warning). - Notes rather than warnings: a wildcard covers one level only and the page tells you to add the bare domain as its own SAN if you need it; internal names (no dot, or
.local,.internal,.lanand similar) and private or loopback IPs cannot be issued by a public CA; achallengePasswordis stored in clear text in the CSR, so its presence is flagged and only its length is shown, never the value. - Signature check: the CSR is signed with its own private key, and the page verifies that signature with the browser's WebCrypto for RSA PKCS#1 v1.5, RSA-PSS, ECDSA (P-256, P-384, P-521) and Ed25519 (where the browser supports it).
signature validproves only that whoever made the CSR holds the matching private key, and that the request was not altered afterwards. It says nothing about who they are or whether they control the names; the CA checks that. A mismatch shows assignature invalid. - Algorithms the browser cannot verify, such as MD5 or SHA-224 digests, DSA and Ed448, show
signature not checkedwith the reason, as a note instead of a failure. An error during the check shows assignature could not be checked, with the browser's reason. - The
public key sha-256is the SHA-256 of the DER public key info. It equals the digest of the key itself, so you can compare it with the same value computed from your private key or from the certificate the CA issues. The base64 form is thepin-sha256format. - A paste containing a
PRIVATE KEYblock is not read: the page reports that the block was ignored. ACERTIFICATEblock is skipped with a pointer to the Certificate Viewer, and other PEM labels are skipped too.NEW CERTIFICATE REQUESTblocks, as written by some Windows tools, are accepted. - Everything runs in your tab. Nothing is uploaded, and the DER reader is a small one written for this site on top of the same primitives as the Certificate Viewer.
Limits
- Input limits: 1 MB of text or file, at most 20 CSRs decoded from one paste (the rest are noted and skipped), at most 50 PEM blocks of any kind scanned, and 64 KiB of DER per CSR. Real CSRs are a few hundred bytes to a few KiB.
- It decodes; it does not validate against any CA. No trust chain, no domain ownership, no CA policy, no certificate transparency, and no check of whether the names are actually yours. The warnings are general rules of thumb, not a given CA's requirements.
- It never touches a private key and cannot confirm that a CSR matches one. To check that yourself, compare the
public key sha-256here withopenssl pkey -in private.key -pubout -outform DER | openssl dgst -sha256. - PEM headers such as
Proc-Type(an encrypted request) are not supported and that CSR is reported as unreadable. Bad base64 or malformed DER is reported per CSR with a reason, and the others still decode. - It is not the Certificate Viewer: it reads requests, not certificates. A
CERTIFICATEblock pasted here is not decoded; use the Certificate Viewer for issued certificates, their validity dates and chains.
FAQ
How do I create a CSR with OpenSSL?
Run openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr -subj "/CN=example.com/O=Example Co/C=AU" -addext "subjectAltName=DNS:example.com,DNS:www.example.com" (OpenSSL 1.1.1 or later, SHA-256 by default). Keep example.key private and give the CA only example.csr.
How do I view a CSR locally instead?
Run openssl req -in example.csr -noout -text -verify. It prints the subject, key, requested extensions and a line ending in verify OK when the signature matches (OpenSSL 3 prints Certificate request self-signature verify OK). This page shows the same fields, plus the warnings above, without leaving your browser.
Does "signature valid" mean the CSR is safe to submit?
No. It means the request is intact and was signed by the holder of the matching private key. Whether the subject and SANs are correct, and whether you control those domains, is for you and the CA to establish.
Is it safe to paste a CSR into an online decoder?
A CSR contains only a public key and the names you want certified, which end up in a public certificate anyway. Here it is decoded in your tab and never sent. Do not paste the private key; a PRIVATE KEY block is ignored and not read.
Runs entirely in your browser. Nothing is uploaded.