Web and SSL Certificates · #67

Online CSR Decoder

Checks the names and key inside a CSR before you send it to a provider.

  • Data is processed in your browser and not sent to a server

Tool

Do not paste private keys; only the CSR is needed.

Optional.

What does this tool do?

A CSR with a wrong or missing SAN means reissuing a paid certificate and days of delay. The tool decodes the subject, requested SAN names and key, and points out common mistakes such as CN missing from SAN, weak keys, an invalid country code or internal names.

How to use it

  1. Paste the CSR starting with -----BEGIN CERTIFICATE REQUEST-----.
  2. Optionally enter a name the certificate must cover; press Run.

Fields

CSR (PEM)
Do not paste private keys; only the CSR is needed.
Name to check
Optional.

Worked example

InputValue
CSR (PEM)
-----BEGIN CERTIFICATE REQUEST-----
MIIBOjCB4AIBADA9MQswCQYDVQQGEwJUUjERMA8GA1UECgwIT3JuZWsgQVMxGzAZ
BgNVBAMMEnBvcnRhbC5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEH
A0IABGaiwAwf4KYcIYNlxR6Pu+t+ODdrjU5nACAFPiEsRL+avUlqRQUZk7dPDnmq
tPzw/OBQlZUuiYHh2H9f/op03PmgQTA/BgkqhkiG9w0BCQ4xMjAwMC4GA1UdEQQn
MCWCEnBvcnRhbC5leGFtcGxlLmNvbYIPdnBuLmV4YW1wbGUuY29tMAoGCCqGSM49
BAMCA0kAMEYCIQDEjVoAPH2FPvtujfP2Dj4l3U6tsTxaMcStvDjqakRNUgIhANte
9km6vur5JjAHOmj51y7YI3qwWBgg0GX/UQIVlmPp
-----END CERTIFICATE REQUEST-----
Name to checkvpn.example.com

Expected result: CN portal.example.com, SAN portal.example.com and vpn.example.com, EC P-256, ecdsa-with-SHA256; vpn.example.com matches a SAN.

The CSR follows the rules and can be submitted. The sample CSR is a test request created for this page.

Second scenario

InputValue
CSR (PEM)
-----BEGIN CERTIFICATE REQUEST-----
MIIChTCCAW0CAQAwQDELMAkGA1UEBhMCREUxFjAUBgNVBAoMDUJlaXNwaWVsIEdt
YkgxGTAXBgNVBAMMEG1haWwuZXhhbXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUA
A4IBDwAwggEKAoIBAQDAoDOyRp8xLJE80yuWg8ctZUIvBG29qX+JVqKlRtN90y1B
r2Q1wW88ymbwoOysCXugbhAcnApWh0FZRknocthT8bP3rEKP4TzY4RozApbpsYCM
PQE0gXoeSfG8lYRnuzaIpPD2eDUIlvN5GbO783v3/safkGR3NSLQQmHXbBmd4JVF
s07vU/6z+GplkQ1ozmrDC1EOW4o7gedE6iIV9ZL+rYTwQgOlw1gScesYnVlS4dMv
CsUzceB/fs6ZKKoCOpf3hbIIOVc11yxDRxxCkKrR1nrFIX1mAhVNB6AUsfN+Yhiw
zg50qch0yW53TKvZcU1rLXfhhPurE+/g30P0N3+LAgMBAAGgADANBgkqhkiG9w0B
AQsFAAOCAQEAMSyi+sEqvm2SYn7vQqYS/0oykjELhD7osw1/UmBS/B/LoCm4Go+v
wpr8Lq4oAcY3Hq795G1wEEAg1YKpJCjVFD7NPlwjUs39uH/+q/srfhcCbYFV3fa1
JVZgmIn30HYUO90AGYiJVd6YmxXyYs0r0z9w/aIQoPBjn+kKNAJQ5JPViKY4LZ+V
S7UO/3pS4PPEivBh3ggNOag2IIetxtx3dK3xHdT7jZbNda1//r631lMQNXTlo287
L5T6p/1lHeFfQVe1MeAClqyh4qGFg3uTAN/roRXD0P3gVxljtPQmrg1MY2ycBFJb
Xhzn8jJ0wlMtQS22595AOCGXE/4gk9IuGw==
-----END CERTIFICATE REQUEST-----

Expected result: RSA 2048 CSR for mail.example.com without SAN: public CAs add the CN to SAN, but internal CAs often do not and browsers then reject the certificate.

Method and assumptions

The PEM block is decoded from Base64 to DER; subject, SubjectPublicKeyInfo and SAN/EKU from the extensionRequest attribute of the PKCS#10 CertificationRequestInfo are read.

Using the result and troubleshooting

If SAN is missing or the key is weak, regenerate the CSR (OpenSSL: -addext "subjectAltName=DNS:…"). Verify the issued certificate with the PEM Certificate Decoder.

Limits and common mistakes

  • The CSR signature (match with the private key) is not verified.

Frequently asked questions

Is it safe to share a CSR?

Yes, a CSR contains only the public key and requested names. Never share the private key (PRIVATE KEY).

Related tools and service

Related service: Web Application Security and WAF

Web online tools · See all online tools