πŸ“„
Webhosting

Creating a CSR for an SSL certificate: here’s how

πŸ“… 29 October 2026 ✏️ 29 October 2026 ⏱ 5 min leestijd

Need a CSR for your SSL certificate? Read here exactly what a CSR is and how to create one yourself in a few steps.

A CSR (Certificate Signing Request) is a file you create when requesting an SSL certificate from a certificate authority. It contains information about your domain and organization, together with a public key. Without a valid CSR, a certificate authority cannot issue a certificate. In this article you’ll read exactly what’s in a CSR, how to create one yourself, and what to do with it.

What exactly is a CSR?

A CSR is an encoded text file that your server or hosting panel generates based on a private key. This private key always stays on your own server and is never shared. The CSR itself doesn’t contain any secret information, so you can safely send it to a certificate authority. They use the information in the CSR to draw up the SSL certificate.

With most modern hosting packages, you don’t need to go through this process manually, because free SSL certificates via Let’s Encrypt are requested and renewed automatically. A manual CSR is mainly needed for paid certificates, such as EV certificates, or when a certificate authority wants to verify specific organization details.

What information do you need?

Before creating a CSR, gather the following information:

  • Common Name (CN): the full domain the certificate is for, for example www.example.com
  • Organization: the official company name (only required for organization or EV certificates)
  • Department: optional, for example ‘IT’ or ‘Marketing’
  • City and province: the location of your organization
  • Country: the two-letter country code, for example NL
  • Email address: a contact address, often linked to the domain

Make sure the Common Name exactly matches the domain for which you’re requesting the certificate. A typo or incorrect spelling will cause the certificate not to work for your website.

πŸ’‘ Tip: Want to secure the domain both with and without ‘www’? Request a certificate that covers both variants, or choose a wildcard certificate if you also want to secure subdomains.

Creating a CSR: step by step

You can create a CSR in several ways: via the command line with OpenSSL, via your hosting panel, or via the tool provided by the certificate authority itself. Below is the approach using OpenSSL, the most commonly used method.

1

Open a terminal

Log in to your server via SSH or open a local terminal with OpenSSL installed.

2

Generate the private key and CSR

Run the command openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr. This creates both the private key and the CSR at once.

3

Fill in the requested information

Answer the questions OpenSSL asks: country, province, city, organization, Common Name, and email address.

4

Store the private key securely

Save the .key file in a secure location on your server. Never share this file with third parties.

5

Submit the CSR

Open the .csr file with a text editor and paste the contents into the certificate authority’s request form.

If you use Plesk, you can also generate a CSR directly via the SSL/TLS Certificates overview without using the command line. This is often the fastest route if you’re already working through a hosting package.

Common mistakes with a CSR

A few mistakes occur regularly and cause delays in issuing a certificate:

  • Entering an incorrect or incomplete Common Name
  • Losing the private key, requiring you to generate the CSR again
  • Using special characters in the organization name that aren’t accepted
  • Creating a CSR for the wrong domain or subdomain
  • Forgetting that a CSR always belongs to the same private key with which the certificate will later be installed

If you use free SSL via Let’s Encrypt, none of this matters: the entire process from CSR to installation runs automatically. For most websites, this provides more than sufficient security. If you’re unsure whether you need a manual CSR, check out the options at webhosting or get in touch via the knowledge base for more explanation.

Frequently asked questions

Can I reuse a CSR for a new certificate?

Yes, as long as the private key is still available and the domain details haven’t changed, you can use the same CSR for a renewal.

What if I’ve lost my private key?

Then you’ll need to create a new private key and CSR and request a new certificate. The old CSR can no longer be used without its corresponding key.

Do I also need a CSR for a free SSL certificate?

No, with automatic issuance via Let’s Encrypt, the CSR is generated behind the scenes without you having to do anything.

Can I use a CSR for multiple domains?

By default, a CSR is linked to one Common Name. For multiple domains, you need a multi-domain or wildcard certificate, with its own CSR.

Conclusion

Creating a CSR is a matter of gathering the right information and running a short command, or filling in a few fields in your hosting panel. For most websites, an automatic free SSL certificate is sufficient, but now you also know exactly what to do if you need to submit a manual request.

View webhosting β†’

Was dit artikel nuttig?