ssl-guides 2026-12-02 ⏱ 3 min read

CSR Generator: Create a Signing Request Safely

CSR Generator: Create a Signing Request Safely

A Certificate Signing Request (CSR) is a block of text that contains your domain details and your public key. You send it to a certificate authority, which uses it to issue a certificate. The matching private key stays on your side and must never be shared. You can generate both with our CSR Generator or with OpenSSL.

What goes into a CSR

FieldExampleNotes
Common Name (CN)example.comPrimary hostname
Subject Alternative Nameswww.example.comList every name you need
Organization, locality, countryExample Ltd, London, GBOptional for domain-validated certificates
Public keyRSA 2048 or ECDSA P-256Generated with the private key

CSR generator: generate with OpenSSL

# RSA 2048 key and CSR with SANs in one command
openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out request.csr \
  -subj "/CN=example.com" \
  -addext "subjectAltName=DNS:example.com,DNS:www.example.com"

# ECDSA alternative
openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes \
  -keyout private.key -out request.csr -subj "/CN=example.com" \
  -addext "subjectAltName=DNS:example.com,DNS:www.example.com"

The -nodes flag leaves the key unencrypted so a web server can start unattended. If you remove it, OpenSSL asks for a passphrase, which is safer on disk but requires entering it at each start unless your server handles it.

CSR generator: check the CSR before submitting

openssl req -in request.csr -noout -text -verify

You can also paste it into the SSL Decoder to confirm the names and key size. A wrong hostname means a wrong certificate and a wasted order.

Protect the private key

  • Set restrictive permissions, for example chmod 600 private.key.
  • Do not email it, paste it into chat, or commit it to a repository.
  • Keep a backup in a password manager or secure vault.
  • If it may have leaked, revoke the certificate and generate a new key and CSR.

After you get the certificate

Confirm that the certificate matches your key with the Key Matcher. If you need a Windows format, convert with the SSL Converter:

openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile ca_bundle.crt

Then check the live install with the SSL Checker.

Do you need a CSR for free certificates?

Not always. ACME clients like Certbot create the key and CSR for you during issuance. Manual CSRs are for hosts, appliances, and CAs that ask for one. For several domains on one certificate, see how to get free SSL for multiple domains.

Common CSR mistakes

Typing the domain with a protocol or path (use example.com, not https://example.com/), forgetting the www name, requesting a wildcard from a CA that validates only by HTTP, and losing the private key before the certificate arrives. If you lose the key, the certificate is useless and you must start again with a new CSR.

Related reading: the private key generator, the full key and CSR guide and the private key generator.

Frequently Asked Questions

Is it safe to generate a CSR in a browser?

It is safe when the key is created locally and never sent to a server. Prefer tools that say so, or use OpenSSL on your own machine.

What key size should I use?

RSA 2048 is the common minimum. ECDSA P-256 is smaller and fast.

Can I reuse an old CSR?

You can, but generating a new key for each issuance is better practice.

Why does my CA reject the CSR?

Common reasons are a missing SAN, a key size that is too small, or an unsupported character in the subject.

Does the CSR contain my private key?

No. It holds the public key and the domain details, signed with the private key. That is why it is safe to send.

🗝️ Generate a 2048-bit CSR & Private Key Online
Generate CSR →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant