CSR generator and viewer
Two modes: subject mode builds a canonical DN from CN/O/OU/C/L/ST and prints the openssl command; parse mode reads a PKCS#10 DER (version, subject RDNs, SAN, key and signature algorithms) with pure string and integer arithmetic. It never asks for a private key and never signs. A reference table.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
Pure string parsing; the private key is never involved. A reference table.
Paste a CSR or fill in the DN fields
RDNs: 0 · SAN entries: 0 · DER bytes: 0
What this tool does
- Produce a correct openssl command
- Verify a generated CSR subject and SAN
- Check key size and signature algorithm
Example
Input
CN=example.com,O=Example,C=CN
Output
CSR subject (DN) and generation command (reference table) Input: CN=example.com,O=Example,C=CN Canonical DN: /CN=example.com/O=Example/C=CN Suggested key size: 2048 bit Generate the CSR locally (the private key never leaves your machine; this tool never touches it and never signs): openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out request.csr -subj "/CN=example.com/O=Example/C=CN" For SANs, append -addext "subjectAltName=DNS:example.com,DNS:www.example.com" Boundary note: a CSR signature requires the private key, and a browser-only tool **must not hold or ask for** one, so this prints the DN and the command; paste the generated request.csr back here (parse mode) to check the subject and the SANs. Reference table, offline.
Frequently asked questions
What do the two modes do?
Subject mode takes fields such as CN=example.com,O=Example,C=CN and prints the canonical DN plus a command; parse mode takes CSR text and reads the subject, SAN and algorithms.
Does it generate a private key?
No, and it should not: the CSR signature requires the private key, so a browser tool must not hold one. You get the DN and command and generate locally.
Which DN fields are supported?
CN, O, OU, C (must be a two-letter country code), L and ST; a longer C raises an error.
Is the parser full ASN.1?
It is a hand-written DER reader (TLV, lengths, OID decoding) covering the common PKCS#10 structures; SAN entries are found by scanning for DNS (0x82) and IP (0x87) tags. A reference table.
Keywords:CSRPKCS#10DNopenssl