What Is a CSR and When Do You Need to Create One Before Ordering SSL?
A Certificate Signing Request carries your public key and site details to the certificate authority. See when you need it, how to create it and common mistakes.
9 min readUpdated Nov 20, 2026By XPASS Editorial Team

When you order an SSL certificate from a certificate authority, you may be asked for something called a CSR. For many people this is the first confusing moment: the form shows a big empty box, and the instructions say to paste a block of text that starts with "BEGIN CERTIFICATE REQUEST". Where does it come from, what is inside it, and what happens if you get it wrong?
This guide explains what a Certificate Signing Request is, what it contains, when you really have to create one and when the system does it for you. It then walks through the steps and the most common mistakes. If the idea of a key pair is new to you, read the explanation of the public key and private key in SSL first, because a CSR is built directly on top of that pair.
What a CSR is
A CSR is a request. You prepare it on your own server or computer and send it to a certificate authority (CA), which uses it as the starting material for your certificate. Technically it is a small data structure in the PKCS#10 format, usually encoded as text so that it can be pasted into a form or emailed. The text starts and ends with marker lines, and the part in between is an encoded block of data.
Inside the CSR you find three kinds of information:
- The public key that will go into the certificate.
- Subject details, such as the domain name and optionally organisation name, city and country.
- A signature, made with your private key over the rest of the content. It proves that the person who built the request holds the private key matching the public key inside.
The CSR does not contain the private key. It is safe to send to the CA, and in itself it is not secret, although there is no reason to publish it. The CA reads the request, checks that you control the domain (and, for some certificate types, that the organisation exists), and then issues a certificate that binds your public key to your domain name.

The place of the CSR in the ordering process
Here is the usual sequence for a manually ordered certificate:
- You generate a key pair on the server that will use the certificate.
- You create a CSR from that key pair and your details.
- You place the order and paste the CSR.
- The CA validates your control of the domain, for example by a DNS record, a file on the website or an email to a known address. Higher validation levels add checks about the organisation.
- The CA signs and issues the certificate and often provides the intermediate certificates as well.
- You install the certificate together with the matching private key and the intermediate files on the server. How that chain fits together is covered in SSL certificate chain explained.
Because the certificate is created for the public key in the CSR, only the private key generated with that CSR can work with the certificate. If you lose the private key, the certificate cannot be installed, and a new CSR is required.
What goes into a CSR
Typical fields are shown below. You do not always have to fill them all; it depends on the certificate type and on the provider.
| Field | Meaning | Notes |
|---|---|---|
| Common Name (CN) | The primary domain name, e.g. www.example.com | Modern browsers rely on the Subject Alternative Name list, but CN is still usually filled in |
| Subject Alternative Names (SAN) | Extra host names covered | Some providers take them from the order form instead of the CSR |
| Organisation (O) | Legal name of the organisation | Needed for organisation-validated certificates, not for basic domain validation |
| City / State / Country | Location details | Country is a two-letter code |
| Key type and size | RSA 2048 bit or larger, or an elliptic curve | Follow the minimum requirements of your CA |
| Email address | Contact address | Often optional and ignored by the CA |
A point worth stressing is that the CA is not obliged to copy everything from the CSR. For a domain-validated certificate, many authorities use only the public key and the domain names, and they ignore organisation fields. Do not rely on unusual characters or long descriptive text in the fields; stick to plain letters and numbers.
When you need to create a CSR yourself
- You run your own server. If you manage a VPS or dedicated server with a web server such as Apache or Nginx, you will normally generate the key and the CSR on that machine.
- The order form asks you to paste one. This is common for certificates that are validated manually, and for products where the provider cannot generate the key for you.
- You install the certificate on a device or appliance. Load balancers, firewalls and some network devices have their own tool for producing a CSR.
- You reissue after a change. A server migration, a change of key type, or any suspicion that the old private key was exposed is a good reason to build a new request.
- You renew. A renewal is effectively a new order. Creating a fresh key pair and CSR with each renewal keeps your keys from living forever.
When you do not have to do it yourself
Many setups handle the request automatically:
- Hosting control panels often include a certificate manager that creates the key and CSR on the server, sends it to the CA and installs the result.
- ACME clients such as the ones that work with the ACME protocol (RFC 8555) generate a key and CSR and prove domain control automatically, so the whole process happens without a human pasting anything.
- Some providers offer an automatic option in the order form, where they generate the CSR and key for you. This is convenient, but you must then download and store the key carefully, because it exists in more than one place.
- Managed platforms that terminate HTTPS for you can take care of everything, and you never see a CSR at all.
If you are not sure which case applies, check the instructions on your hosting or certificate product page. When the platform handles it, creating your own CSR may be unnecessary and could even cause a mismatch.
How to create a CSR: a practical walk-through
The details differ by system, so use these steps as a guide, not as a script for every environment.
Option 1: control panel. Open the SSL or certificate section, choose to create a certificate request, enter the domain name and the optional details, and let the panel produce the key and CSR. Save the CSR text for the order. The panel keeps the private key, so leave it there.
Option 2: the openssl command line. On a server where OpenSSL is installed, a single command can create both items. For example:
openssl req -new -newkey rsa:2048 -nodes \
-keyout example.com.key -out example.com.csr \
-subj "/CN=example.com" \
-addext "subjectAltName=DNS:example.com,DNS:www.example.com"
This creates a private key file and a CSR file. The -nodes option means the key is saved without a passphrase; remove it if you want to be asked for one. Check your OpenSSL version, because the -addext option needs a reasonably recent release.
Check before sending. Display the content of the request to make sure the names are correct:
openssl req -in example.com.csr -noout -text
Look at the subject and the list of names, and confirm that there are no typos in the domain. Then paste the full CSR text, including the begin and end marker lines, into the order form.
Protect the key. After creating the files, restrict permissions on the key file and keep it off any web-accessible folder.
A plain example
Imagine a small online shop at shop.example.com that hosts its own site on a rented server. The owner wants a certificate for both example.com and www.example.com. On the server, the administrator creates a new key and a CSR with both names in the alternative-name list, checks the output, and pastes the CSR into the order form. The CA asks for a DNS record to prove control of the domain; the administrator adds it, and after a short wait the certificate is issued. The administrator installs it with the private key that was created in step one, adds the intermediate certificates, and restarts the web server.
A month later, the owner decides to add a subdomain for a members area. Since a certificate cannot be edited after issue, the administrator creates a new request that includes the extra name and asks for a reissue, or orders a certificate that is suitable for several names. If you manage many hostnames, compare the certificate types on the product page before ordering.
Common mistakes and how to avoid them
- Losing the private key. The key generated with the CSR is the only one that fits the certificate. Back it up safely, or be ready to start again with a new request.
- Typing the wrong domain. A typo in the Common Name or alternative names produces a certificate for the wrong host. Always inspect the CSR before ordering.
- Forgetting the www name. If visitors use both example.com and www.example.com, the certificate has to cover both.
- Sending a private key instead of a CSR. Never paste or upload a file that says "PRIVATE KEY" into an order form.
- Mixing up files. After a reissue, the new certificate must be paired with the new key. A mismatch causes a server error on start-up or when reloading.
- Using unusual characters. Accents, symbols and non-standard characters in the organisation field may cause the order to fail.
- Ignoring key size rules. A key shorter than the minimum accepted by the CA is rejected.
- Using a CSR twice by accident. Re-using an old request for a new order may reuse an old key that you meant to retire.
Limits and what to watch for
A CSR does not prove anything on its own. It only asks. The CA still has to validate that you control the domain, and it may refuse if the request breaks its rules or the industry rules agreed in the CA/Browser Forum. A CSR also cannot be edited after it is created: if a name is wrong, you create a new one.
Remember too that a CSR is not an installation file. You cannot install it on a server; it is only an order document. The certificate you receive from the CA is the thing that gets installed. And if the CA provides several files, such as the main certificate and a bundle of intermediates, install them all, as explained in the chain article mentioned above. Finally, keep in mind that the strength of your setup still depends on server protocol settings, which is where TLS 1.2 vs TLS 1.3 becomes relevant.
Summary
A CSR is the application form for an SSL certificate. It carries your public key and the names you want covered, and it is signed with your private key to prove ownership of the pair. You create it yourself when you run your own server, install certificates on devices, or when the order form asks for it, while many control panels and ACME tools handle it automatically. Generate it on the server that will use the certificate, check the names before sending, protect the private key, and create a fresh request for each renewal or reissue. When you are ready to order, you can review the available certificate types on the SSL page.
Frequently asked questions
What is a CSR in simple terms?
A CSR, or Certificate Signing Request, is a block of encoded text that you send to a certificate authority. It contains your public key and some details about the site or organisation, and it is signed with your private key to prove you hold it.
Does a CSR contain my private key?
No. A CSR holds only the public key and identity details. The private key is created at the same time but stays with you and must not be sent to anyone.
Do I always have to create a CSR myself?
Not always. Many hosting panels, control tools and ACME clients create it for you in the background. You need to create one manually mostly when you run your own server or when the order form asks you to paste one.
Do I need a new CSR when I renew or reissue?
It is good practice to create a new CSR with a new key pair each time, especially after a server change or a suspected key exposure. Some providers allow reusing an old one, but a fresh request is the safer default.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need an SSL certificate?
Pick the certificate type that fits your site and see the price before you check out.
SSL from $14.99
See SSL certificatesKeep reading

SSL Guides
Public Key and Private Key in SSL: What They Are and How to Protect Them
Every SSL certificate depends on a key pair. See what the public and private key do, why the private key must stay secret, and what to do if it leaks.
9 min read

SSL Guides
SSL Certificate Chain Explained: Root, Intermediate and Your Certificate
Your certificate is trusted because it links back to a root through intermediates. Learn how the chain works, what causes chain errors and how to fix them.
9 min read

SSL Guides
TLS 1.2 vs TLS 1.3: What Actually Changes for Your Website
TLS 1.3 is faster to set up and removes old, risky options, while TLS 1.2 is still common. Learn the real differences and how to check your own site.
9 min read