What Is a CSR? Creating a Certificate Signing Request the Safe Way
What a certificate signing request contains, which fields matter, RSA or ECDSA, and how to generate a CSR without handing your private key to anyone.

Every paid or organisation-validated SSL certificate begins with the same step: the certificate authority asks you for a CSR. Hosting control panels hide it behind a button, and many guides send you to a website that "generates the CSR for you". It helps to understand what the file is, because getting it wrong means waiting for a reissue, and generating it in the wrong place can expose the most sensitive file of your web server.
The key pair comes first
TLS rests on a key pair. The private key stays on your server and proves that the server is really you. The public key goes into the certificate for everyone to see. A certificate is essentially the CA's signed statement: "this public key belongs to this domain".
A CSR (certificate signing request, defined in the PKCS#10 standard) packages your public key together with the names you want in the certificate, and signs the whole thing with your private key. That signature shows the CA that whoever sent the request holds the matching private key. The private key itself is never part of the CSR.
This is why a website that generates the key for you on its server is a poor idea: the one file that must stay secret has passed through somebody else's machine.
Which fields matter
- Common Name: traditionally the main host name, such as www.example.com.
- Subject Alternative Names: every host name the certificate must cover, for example www.example.com and example.com, or *.example.com for a wildcard. Browsers check only this list.
- Organisation, City, State or region, Country: needed for organisation-validated (OV) and extended-validation (EV) certificates, where the CA checks them against official records. The country is a two-letter ISO code such as GB, US or BD. For domain-validated (DV) certificates, the CA usually discards these fields.
- Email: optional and usually ignored.
Public CAs decide key usage and extended key usage themselves. Requesting them matters mainly for internal CAs such as Active Directory Certificate Services.
RSA or ECDSA
RSA 2048 is accepted everywhere and is the default for most hosting panels. ECDSA P-256 offers the same security with much smaller keys and faster handshakes, and all major CAs issue ECDSA certificates. RSA 4096 is slower and only worth it when a policy requires it. Ed25519 is not issued by public CAs yet.
Creating the CSR
The CSR and Private Key Generator creates the key and signs the request inside your browser with Web Crypto.
- Choose a preset: website (www and bare domain), wildcard, internal server or client certificate.
- Enter the subject and list every host name under Subject Alternative Names.
- Pick the key: generate a new RSA or ECDSA key, optionally encrypted with a password, or paste your existing key when renewing.
- Generate, then copy the CSR into the CA's order form.
- Save the private key immediately, along with the ZIP that also holds an OpenSSL config file for future renewals.
The page also shows the SHA-256 fingerprint of the public key and keeps a list of the CSRs you made (without the keys), so you can match the certificate to the right key when it arrives.
Checking before you submit
Run openssl req -in request.csr -noout -text -verify on any machine with OpenSSL. You should see "verify OK", your subject, and the SAN entries under Requested Extensions. Spotting a typo now saves a reissue later.
After the CA replies
You receive the certificate, often with one or more intermediate certificates. Install them on the server together with the private key from the same CSR. If the server reports that the key does not match, compare the public key fingerprints: openssl x509 -in cert.pem -noout -pubkey | openssl sha256 should match the fingerprint you noted.
Renewals: new key or same key?
Most teams create a new key at each renewal. It limits the damage if an old key ever leaked, and it costs nothing. Reusing the existing key is acceptable and sometimes convenient, for example when the key is referenced by other systems. Either way, the old certificate keeps working until it expires, so you can install the new one at a quiet time.
Keep the key private
Store the private key with file permissions that only the web server can read, back it up somewhere secure, and never email it or commit it to a repository. If a key is ever exposed, ask the CA to revoke the certificate and start again with a new CSR.



