How to generate certificate signing request (CSR) for a domain in Plesk?
1. Generate CSR from Plesk directly:
1.1 Log in to Plesk panel and go to Domains > example.com > SSL/TLS Certificates
1.2 Click Add SSL/TLS Certificate:
1.3 Specify the following certificate parameters:
Certificate name. This will help you identify this certificate in the repository.
- Bits. Choose the encryption level of your SSL certificate. In Plesk Onyx, 2048, 3072 and 4096 bits are available.
- Country, State or province, location (city), organization name (company). The values you enter should not exceed the length of 64 symbols.
- The domain name for which you want to purchase an SSL certificate. This should be a fully qualified domain name. Example: example.com.
Email: The website administrator's email address
Make sure that all the provided information is correct and accurate, as it will be used to generate your private key.
1.4 Click Request
Plesk will generate your private key and certificate signing request (CSR) and add them to your certificates repository (Domains > example.com > SSL/TLS Certificates).
1.5 Now that the CSR has been generated, you need to provide it to the Certificate Authority of your choice to purchase a certificate from them. In the list of certificates in Domains > example.com > SSL/TLS Certificates, click the name of the certificate you need.
1.6 Locate the CSR section on the page, and copy the text that starts with the line -----BEGIN CERTIFICATE REQUEST----- and ends with the line -----END CERTIFICATE REQUEST----- to the clipboard.
1.7 Provide the CSR to the Certification Authority when purchasing the certificate. The exact procedure differs from one Certificate Authority to another, so contact the Certificate Authority for assistance. Once you complete the purchase, you will be given the certificate in the form of either a
*.crt file, a
*.pem file, or in text form.
1.8 For more information, visit Plesk Administrator Guide.
2. CSR can also be created with an
- Login to the server via SSH. Run the following command:
# openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
where server is the name of your server.
This will begin the process of generating two files: the Private-Key file for the decryption of the SSL Certificate, and a certificate signing request (CSR) file used to apply for the SSL Certificate.
When prompted for the Common Name (domain name), enter the fully qualified domain name for the site that is to be secured. If generating an Nginx CSR for a Wildcard SSL Certificate, make sure the common name starts with an asterisk (e.g.
After that other information will be requested such as organizational information, beginning with geographic information. There may be default information set already.
.csrfile will be created.
Save (back up) the generated
.keyfile as it will be required later when installing the SSL certificate in the webserver.