Generate a correct CSR to obtain your SSL certificate.
The CSR (Certificate Signing Request) is the first step to obtain an SSL certificate. It's an encoded file containing your public key and information about your organization/domain.
A poorly generated CSR can result in rejection by the certificate authority or compatibility issues. Understanding the process is essential.
This guide covers CSR generation for different servers and common mistakes to avoid.
A CSR contains several important pieces of information:
Why take the time to generate your CSR properly:
Generation process with OpenSSL:
Complete CSR generation:
# Generate private key and CSR in one command
openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out domain.csr
# With SAN (multi-domain)
openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out domain.csr \
-subj "/CN=example.com/O=My Company/C=US" \
-addext "subjectAltName=DNS:example.com,DNS:www.example.com"
# Verify CSR content
openssl req -text -noout -verify -in domain.csr
The private key must be kept secret and secure. Never share it.
Tips for flawless CSRs:
RSA 2048 is most compatible. ECDSA is more performant but less supported by old clients.
CN is mandatory. O, C, L, ST are required for OV/EV but optional for DV.
You'll need to revoke the certificate and order a new one with a new CSR.
Technically yes, but it's not recommended. A new key pair is more secure.
Use the SAN (Subject Alternative Names) extension during generation.
No, the CSR only contains the public key. The private key stays on your server.
A well-generated CSR is the foundation of a secure SSL certificate. Take the time to verify each field.
With MoniTao, then monitor your certificate to never miss its expiration.
Start free, no credit card required.