Get online today — Domain + Hosting at discounted prices View Combo Offers ›

CSR Generator

Generate a certificate signing request and private key for any domain.

One per line. The primary domain is added automatically — modern browsers read only the SAN list, ignoring the Common Name entirely.

Generate a Certificate Signing Request and its matching private key. Fill in your domain and organisation details, and you get both, ready to paste into your certificate authority's order form.

A note worth reading first: the private key is generated here, on our server. It is created in the request, returned to you, and never written to disk or logged — but the most careful approach is always to generate the key on the machine that will use it, so it never crosses a network at all. The exact openssl command to do that is included with every result.

How it works

A certificate works as a pair. The private key stays on your server and is never shared with anyone, including the certificate authority. The CSR contains your public key and identity details, and is what you send to the CA. They sign it and return a certificate that pairs with the private key you kept.

This is why a CSR alone is harmless to share, and why a private key is not: lose the key and the certificate is useless; leak the key and anyone can impersonate your site.

What actually matters in a CSR:

  • Common Name — the primary hostname. Note that example.com and www.example.com are different names; a certificate for one does not cover the other unless both are listed.
  • Subject Alternative Names — every additional hostname the certificate should cover. Modern browsers ignore the Common Name entirely and read only the SAN list, so the primary domain must appear there too. Well behaved tools add it automatically, as this one does.
  • Key size — 2048-bit RSA is the standard and universally accepted. 4096-bit is stronger and slightly slower on every handshake; it is rarely necessary.
  • Organisation details — only verified for OV and EV certificates. For the domain-validated certificates most sites use, CAs ignore these fields entirely, so accuracy matters less than you might expect.

One thing that trips people up: if you generate a new CSR, you get a new private key, and a certificate issued from an earlier CSR will not work with it. Keep the key that was generated alongside the CSR you actually submitted.

Frequently asked questions

Is it safe to generate a private key on a website?

It is a real trade-off. The key here is created in the request, returned to you, and never written to disk or logged — but it does traverse a network, and you are trusting our word about the rest. For anything high-value, run the openssl command shown with each result on the server that will use the certificate. That way the key never leaves the machine.

Do I need to include both example.com and www.example.com?

Yes, if you want both to work. They are separate names. Add the second as a Subject Alternative Name — a certificate for the bare domain does not cover the www version, and this is the single most common certificate mistake.

Should I use 2048 or 4096-bit?

2048-bit is the standard and is accepted everywhere. 4096-bit is stronger but makes every TLS handshake slightly more expensive, and no current guidance requires it for ordinary web certificates.

What if I lose the private key?

The certificate becomes unusable — there is no recovery, by design. You must generate a new key and CSR and have the certificate reissued. Most CAs allow reissuance free within the certificate term.

Do the organisation details need to be accurate?

For domain-validated certificates, no — CAs ignore them and validate only domain control. For organisation-validated or extended-validation certificates they are checked against official records, and a mismatch will delay issuance.

Can I use one CSR for several certificates?

Technically yes, but you should not. Each certificate should have its own key pair, so that compromising one does not compromise the others.

Related tools

Need hosting that just works?

Free SSL, daily backups and 24×7 support on every Loudhost plan.

View Hosting Plans