Browser tool
CSR generator: create a key and CSR in your browser
Make a private key and a certificate signing request (CSR) with the names your certificate needs. Runs in your browser. Nothing you type or generate is sent anywhere, and this page loads no analytics.
How to use it
- Pick a key type. ECDSA P-256 suits most servers; choose RSA when a client or your CA needs it.
- Type the main host name as the Common Name. It becomes the first Subject Alternative Name (SAN); add every other name the certificate must cover.
- Fill in the organization fields only for an OV or EV certificate. For a DV certificate the CA keeps only the names.
- Click Generate. Download the private key (.key), with a passphrase if you like, and the CSR (.csr).
- Send the CSR to your CA. Keep the private key private: the CA only needs the CSR.
Questions
Is it safe to generate a private key on a website?
This page makes the key with your browser's built-in cryptography (WebCrypto). Nothing you type or generate is sent anywhere, and the page loads no analytics. Still, the best practice is to generate the key on the server that will use it, with the OpenSSL command the tool shows. Use this tool when that is hard; move the key safely and delete other copies.
Does the CA need my private key?
No. Keep the private key private. The CA only needs the CSR: it holds your public key and the names you ask for, and it is signed with the private key to prove you hold it.
Which key type should I choose?
ECDSA P-256 is fast and widely supported, and the best choice for most servers. RSA 2048 is the minimum public CAs accept; choose RSA 3072 or more for keys you keep for years. P-384 is a larger curve and is signed with SHA-384.
Why must the host name be in the SAN and not only in the Common Name?
Browsers and Go check only the Subject Alternative Name, so a certificate with its name only in the Common Name fails in Chrome, Firefox and Go. Some libraries, such as OpenSSL and Python, still fall back to the Common Name, but only when the SAN holds no DNS name. The tool copies the Common Name into the SAN for you.
How do wildcard names work?
*.example.com covers one level of names, such as www.example.com and shop.example.com, but not example.com itself or a.b.example.com. The star must be the whole left-most label, and *.com is never allowed. Add example.com as a second name if you need it.
What does the passphrase option do?
It saves the key as an encrypted PKCS #8 file (PBKDF2-HMAC-SHA256 with 600,000 iterations and AES-256-CBC). OpenSSL reads it with openssl pkey -in server.key and asks for the passphrase. Web servers then ask for it each time they start.
Does this page use analytics or cookies?
No. This page never loads analytics or the cookie banner, even if you allowed analytics elsewhere on this site, because a private key is made here. The key is kept only in this tab's memory and is cleared when you start over or leave the page.