CSR and Private Key Generator

Create the CSR your certificate authority asks for, with a new RSA or ECDSA key or your existing key, without the key ever leaving your device.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Pick a preset

    Start from Website, Wildcard, Internal server or Client certificate.

  2. 2
    Fill in the subject

    Enter the Common Name, organisation, city, region and the two-letter country code.

  3. 3
    List the names

    Put every host name in Subject Alternative Names, one per line, including the Common Name.

  4. 4
    Choose the key

    Generate a new RSA or ECDSA key, optionally password protected, or paste your existing key for a renewal.

  5. 5
    Generate the CSR

    Press Generate CSR and copy the request into your certificate authority's order form.

  6. 6
    Save the key

    Download the private key and the ZIP with the CSR and OpenSSL config before you close the page.

About this tool

Buying or renewing an SSL certificate starts with a certificate signing request (CSR): a small signed file that carries your public key and the names the certificate should cover. The certificate authority checks that you control the domain, signs the request and sends back a certificate that only works with your private key. Many hosting guides tell you to paste details into a website that then generates the key for you on their server, which means someone else has seen your private key. This generator creates the key pair and the PKCS#10 request with Web Crypto inside your browser. Choose RSA 2048, 3072 or 4096 or ECDSA P-256 or P-384, enter the organisation, city, region, two-letter country code and the Common Name, and list every host name in Subject Alternative Names. For a renewal you can paste your existing private key instead, so the new certificate fits the key already on the server. The page shows the CSR in PEM form ready to paste into the CA's order form, the private key (optionally encrypted with a password), the equivalent OpenSSL configuration file and command, and the SHA-256 fingerprint of the public key.

What goes into a CSR

The subject holds the names a CA may print in the certificate: Common Name, Organisation, Department, City, State or region, Country and email. For domain-validated certificates most CAs keep only the domain names and ignore the rest. Subject Alternative Names are sent as an extension request, so www.example.com and example.com, or a wildcard such as *.example.com, are covered by one certificate.

Requested key usage

Public CAs set key usage and extended key usage themselves and ignore what the CSR asks for, so the default leaves them out. For an internal CA, such as Active Directory Certificate Services or a private step-ca, you can request TLS server, TLS client, both, S/MIME email or code signing.

Matching the certificate to its key

The log at the bottom lists each CSR with the first part of its public key fingerprint. When the signed certificate arrives, its public key fingerprint must match, which tells you which saved key file belongs to it.

Limits

The CSR does not prove anything by itself: the CA still validates your domain or organisation. Keys are not stored by the page, so download the key file before you close the tab; without it the certificate you buy cannot be installed. Ed25519 keys are not offered because public CAs do not issue certificates for them. This is not a certificate authority: it does not sign or issue certificates.

Worked example

For a renewal of www.example.co.uk, an administrator chose the Website preset, set the subject to Example Ltd, London, England, GB, and listed www.example.co.uk and example.co.uk. With a new RSA 2048 key the page produced a CSR of about 1,050 characters and a public key fingerprint starting 3F:9A:C1. He pasted the CSR into the CA's renewal form, saved example.key, and two hours later installed the returned certificate on nginx; openssl x509 -noout -pubkey confirmed the matching fingerprint.

Quick facts

Frequently asked questions

Is my private key sent anywhere?

No. The key pair is generated by the browser's Web Crypto engine, and the CSR is signed on your device. Only the CSR, which contains the public key, is meant to be given to the certificate authority.

Which key size should I choose?

RSA 2048 is accepted by every CA and every client. ECDSA P-256 gives the same security with a smaller key and faster handshakes, and all major CAs issue it. Choose RSA 4096 only if a policy demands it, as it is slower.

Do I need to fill in every field?

For domain-validated certificates only the domain names matter. Organisation-validated and extended-validation certificates need the legal organisation name, city, region and country exactly as registered, because the CA checks them.

Can I renew with my existing key?

Yes. Choose Use my existing key and paste the PEM private key from the server. The new CSR carries the same public key, so you only replace the certificate file. Many teams prefer a new key at each renewal, which is the default.

How do I check a CSR before submitting it?

Run openssl req -in request.csr -noout -text -verify, or paste it into a CSR decoder. It should show your subject, the SAN list under Requested Extensions and a valid signature.

What is the .cnf file for?

It is the same request written as an OpenSSL configuration. Keep it with your server notes so the next renewal can be made with one openssl req command on the server itself.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages