PT Privacy Tools

CSR Generator & Decoder

Create a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, or decode an existing CSR β€” locally in your browser.

πŸ”’ Runs entirely in your browser β€” nothing is uploaded

Keys and CSRs are created with Web Crypto in your browser. Nothing is uploaded.

Was this tool useful? Rate it:

What a CSR is and how this tool builds it

A certificate signing request (CSR) is the file you send to a certificate authority such as Let's Encrypt, DigiCert or your company's internal CA to obtain a TLS certificate. It contains your public key, the subject details (Common Name, organization, locality and country) and the Subject Alternative Names the certificate should cover, all signed with the matching private key to prove you own it. This tool generates the key pair with the browser's Web Crypto API and builds a standard PKCS#10 request with @peculiar/x509. The result is the same PEM format produced by openssl req -new, so any CA accepts it.

Filling in the fields correctly

Put the main hostname, for example www.example.com, in the Common Name, and list every name the certificate must secure in the SAN box, including the bare domain and wildcard names like *.example.com. Modern browsers only look at SANs, so the tool adds the Common Name to the SAN list by default. The country must be a two-letter ISO code such as US or DE. Organization and location fields matter for organization-validated certificates; for domain-validated ones they are usually ignored. RSA 2048 is universally compatible, while ECDSA P-256 gives smaller keys and faster handshakes.

Handle the private key with care

The private key never leaves your browser and is never part of the CSR. Download it right away and move it to the server that will present the certificate, with permissions that only the web server can read. If you lose the key, the issued certificate cannot be used and you must create a new CSR. Never send the private key to the certificate authority or anyone else. Before submitting, use the Decode tab to confirm the subject, SANs and key type, and to check that the CSR's signature is valid.

How to use

  1. Fill in the subjectEnter the Common Name (main hostname) and optional organization, location, country and email fields.
  2. Add SANs and key typeList every DNS name or IP the certificate should cover and choose RSA or ECDSA.
  3. Generate and saveCopy the CSR for your certificate authority and download the private key to the server that will use the certificate.
  4. Decode to verifyOptionally paste any CSR into the Decode tab to check its contents and signature.

Frequently asked questions

Is my private key sent to anyone?
No. The key pair is generated with Web Crypto in your browser and the CSR is built locally. Only the CSR, which contains the public key, should be sent to your certificate authority.
Which key type should I pick?
RSA 2048 is accepted everywhere. ECDSA P-256 is smaller and faster and supported by all modern CAs and browsers. Use RSA 4096 or P-384 if your policy requires stronger keys.
Why do I need Subject Alternative Names?
Browsers match the hostname only against the SAN extension and ignore the Common Name. List every hostname the certificate must cover, including www and wildcard names.
Can I check a CSR before submitting it?
Yes. Use the Decode CSR tab to view the subject, key type, SANs and whether the CSR's signature is valid.