When you apply for an SSL Certificate, you will generate a Certificate Signing Request (CSR) on your server, which is a block of encoded text. It contains important info about your domain and organization, and is used by a Certificate Authority (CA) to create your SSL certificate.
When you want to issue an SSL certificate, you send a request to a Certificate Authority, known as a CSR. It consists of:
domain name (cn)
Organisation Details
Location information (country, province, city)
The public key
The CSR is used in conjunction with a private key, which is generated at the same time and must be kept secure.
In case you have SSH access, you can create a CSR using OpenSSL with the following command:
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csrWhen you run the command, it will ask you for information such as:
Country Name (e.g. IN)
State or Province
own
Name of Organization
Unit of organization
Common Name (i.e., your domain name)
Email ID
When it is complete it will generate two files:
yourdomain.key → Private key (keep secure and don’t share)
yourdomain.csr → CSR file (for requesting SSL certificate)
If you cannot use SSH, most hosting control panels also have a CSR generator.
You are fair:
Go to SSL / TLS section
Click “Generate CSR”
Enter domain and organization information
Submit CSR and Private Key Create
The private key must correspond to the CSR
CSR can be safely shared with SSL vendors
SSL validation might fail if there is any mismatch in domains or details
Generating a CSR is a necessary step for installing an SSL certificate. It will create the request for a Certificate Authority to issue your SSL and enable HTTPS on your website – securely whether using SSH or a hosting control panel.