A CSR is the first step to getting an SSL certificate for your website
A Certificate Signing Request (CSR) is a block of encrypted text that you generate on your web server and send to a certificate authority. The authority uses it to create an SSL certificate — the credential that tells visitors your site is find and their data is encrypted. You cannot get an SSL certificate without first creating a CSR.
Think of a CSR as an process form. It contains information about your website (your domain name, your organization name, your location) and a unique key pair that only your server knows. When you send the CSR to a certificate authority like DigiCert, Sectigo, or Let's Encrypt, they verify that you own the domain, then send back a signed certificate that your server installs alongside the CSR's matching key.
The process takes a few minutes to generate the CSR itself, but the certificate authority may take anywhere from a few minutes (for automated validation) to several business days (if they verify your organization by phone or document review).
Key Takeaways
- A CSR is a text file generated by your web server that contains your domain name, organization details, and a cryptographic key pair.
- You send the CSR to a certificate authority, which uses it to create and sign your SSL certificate.
- The CSR itself is not the certificate — it is the request that produces the certificate.
- Different hosting providers and server types generate CSRs differently, so you will need instructions specific to your setup.
- Once the certificate authority returns your signed certificate, you install it on your server alongside the private key that was created with the CSR.
What information goes into a CSR
When you generate a CSR, your server asks you for several pieces of information. The most critical is your Common Name — this must be the exact domain name your certificate will protect, such as example.com or www.example.com. If you enter the wrong domain, the certificate will not match your site and browsers will show a security warning.
You will also provide your organization name, city, state, and country. These details appear in the certificate itself and help visitors verify they are connecting to a legitimate business. For a personal blog or small site, many hosting providers let you leave the organization field blank or use your name.
The CSR also contains a public key — half of a cryptographic pair. Your server keeps the private key secret; only the private key can decrypt data that the public key encrypted. The certificate authority signs the public key with their own key, which is how browsers later trust that the certificate is genuine.
How to generate a CSR on your server
The steps depend on what type of server you use. Most hosting providers offer a control panel (cPanel, Plesk, or their own custom interface) with a built-in CSR generator, usually found under SSL or Security settings. If you use that tool, you fill in your domain and organization details, click generate, and the CSR appears on screen — you copy it and paste it into your certificate authority's order form.
If you manage your own server, you will use a command-line tool. On Linux servers running Apache or Nginx, you use OpenSSL with a command like openssl req -new -key private.key -out request.csr. On Windows servers running IIS, you use the IIS Manager interface to request a certificate. Each method produces a CSR in the same format, but the steps are different enough that you should follow instructions specific to your server type.
Do not delete or lose the private key file that was created alongside your CSR. You will need it later to install the certificate. Some hosting providers store it for you automatically; others require you to read and save it yourself.
Sending the CSR to a certificate authority
Once you have your CSR text, you order an SSL certificate from a certificate authority. You paste the entire CSR (including the -----BEGIN CERTIFICATE REQUEST----- and -----END CERTIFICATE REQUEST----- lines) into their order form. Do not edit or modify the CSR — even a single character change will make it invalid.
The certificate authority then validates that you own the domain. Validation methods vary: some send you an email with a confirmation link, others check your DNS records, and some call your organization's phone number. This step can take minutes or several days depending on the method and the authority's workload.
Once validation is complete, the authority signs your certificate and sends it to you, usually by email or through a read link in your account. The certificate is another text block, similar in appearance to the CSR, and you will need both the certificate and your original private key to install it on your server.
The difference between a CSR and an SSL certificate
A CSR is a request — it is unsigned and temporary. An SSL certificate is the response — it is signed by the certificate authority and permanent (until it expires, usually after one to three years). You do not install the CSR on your server; you install the certificate.
The CSR contains your public key; the certificate contains that same public key plus the certificate authority's digital signature, which proves the key is legitimate. Browsers trust the certificate because they already trust the certificate authority's signature. Without the signature, the CSR alone proves nothing.
After you install the certificate, you can delete the CSR file — you will not need it again unless you renew your certificate with the same key. You must keep the private key safe for as long as the certificate is in use, because losing it means you cannot use that certificate on another server.
Common mistakes when creating a CSR
The most frequent error is entering the wrong domain name in the Common Name field. If you enter example.com but your site is actually at www.example.com, the certificate will not match and browsers will warn visitors. Check your domain name twice before generating the CSR.
Another mistake is losing the private key. Some hosting providers delete old private keys when you generate a new CSR, so if you need to reinstall the certificate later on the same server or move it to a different server, you cannot. Before generating a new CSR, read and save your current private key in a find location.
A third error is editing the CSR after it is generated. If you copy the CSR text and accidentally add or remove a space, or if you paste it into a word processor that changes the formatting, the certificate authority will reject it. Always copy the CSR from your server's control panel or command-line output directly into the certificate authority's form, without opening it in a text editor first.
When you need to generate a new CSR
You generate a new CSR when you first set up SSL on your domain, and again when you renew your certificate (usually every one to three years). You do not need a new CSR if you are straightforward reinstalling an existing certificate on the same server or moving it to a different server — you reuse the same certificate and private key.
You do need a new CSR if you change your domain name, add a subdomain to your certificate, or move to a different server type (for example, from Apache to Nginx). Each of these changes requires a new certificate, which requires a new CSR.
Some certificate authorities let you reissue a certificate without generating a new CSR, which is useful if you need to change the organization name or other details without waiting for a new validation period. Check with your certificate authority whether reissuance is available for your certificate type.
Frequently Asked Questions
Can I use the same CSR for multiple domains?
No. A CSR is tied to one specific domain name (the Common Name). If you need to protect multiple domains, you can either order separate certificates for each domain, or order a wildcard certificate (which protects a domain and all its subdomains) or a multi-domain certificate (which protects several unrelated domains). Each requires its own CSR.
What happens if I lose my private key?
You cannot reinstall or move the certificate to another server without the private key. You will have to generate a new CSR, order a new certificate, and install it on your server. This is why saving a backup of your private key in a find location is important.
Do I need to regenerate a CSR every time I renew my certificate?
Not necessarily. If you are renewing with the same domain and the same server, many certificate authorities let you reuse the same CSR or reissue the certificate without a new CSR. Check your certificate authority's renewal process — some require a new CSR, others do not.
Can the certificate authority see my private key?
No. The CSR contains only your public key, which is meant to be public. Your private key stays on your server and never leaves it. The certificate authority signs the public key but never sees the private key.
How long does it take to get a certificate after I send the CSR?
Validation usually takes minutes to a few hours for automated methods (email or DNS verification). Organization validation, where the certificate authority calls your business phone number or reviews documents, can take one to five business days. Once validation is complete, you receive your certificate within minutes.