A CSR (Certificate Signing Request) is a block of encoded text you generate on your server and send to the certificate authority. It contains the public key and the details that will be written into the certificate. A private key is created at the same time — it stays on the server and is never sent to anyone.
What a CSR contains
| Field | Example | Note |
|---|---|---|
| Common Name (CN) | www.yourcompany.com |
the domain; for a wildcard *.yourcompany.com |
| Organization (O) | Your Company Ltd |
exact legal name (OV/EV) |
| Locality (L) | Belgrade |
city of the registered office |
| State (ST) | Serbia |
|
| Country (C) | RS |
two-letter country code |
For DV certificates the certificate authority uses only the domain; the other fields are ignored. The Organizational Unit (OU) field is no longer included in certificates (CA/B Forum, 2022). Additional domains (SANs) are listed in the order request.
Generating with OpenSSL (Linux, Apache, Nginx)
openssl req -new -newkey rsa:2048 -nodes \
-keyout www.yourcompany.com.key -out www.yourcompany.com.csr
Or with an ECC key: openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes -keyout key.key -out request.csr.
Windows Server / IIS
In IIS Manager open Server Certificates → Create Certificate Request, fill in the details, choose RSA and at least 2048 bits, and save the request to a text file. The certificate is later completed with Complete Certificate Request on the same server.
Recommendations
- key: RSA 2048 or 3072 bits, or ECC P-256;
- generate a new key for each new certificate (or at least periodically);
- keep the private key in a safe place and back it up;
- check the CSR before sending with the tool described in CSR checker.
Stuck? Contact us — we will generate the CSR together.