Skip to main content

How to generate a private key and CSR file with cPanel?

To issue a certificate, you need a certificate signing request, briefly a CSR file. Based on the data provided in the CSR file, the certificate issuer will issue the certificate that can later be used, among other things, to secure websites. The certificate signing request can be made on the cPanel interface before the certificate is ordered.

When generating a CSR file, a private key is created that will allow the certificate to be installed after the certificate is issued. cPanel also generates and stores the private key, which can be accessed on cPanel at any time.

There are several options for creating a private key and its associated CSR file


  1. Log in to cPanel.
  2. Find the SSL/TLS and click on it to load.


  3. In the SSL/TLS page find the Certificate Signing Requests (CSR) and click the Generate, view, or delete SSL certificate signing requests. link.


  4. You will need to enter the following information on the page that appears (fill in the marked fields):
    • Key: If you have not previously created a secret key, you can choose the secret key strength.
    • Domains: In this field, you must enter the domain name or subdomain name for which the certificate will be issued by the certificate issuer. This field does not need to enter “http://” “https://” prefixes.

The domains field should normally be the domain name, for example: If you require an SSL certificate for a subdomain, you must enter the If you want to request a wildcard SSL certificate, you should start with *, for example: * where represents the domain name. If you enter multiple domain names, enter a domain name per line.

    • City: Enter the 
      • organization headquaters city
      • in the case of a natural person, the city in which you are staying
    • State : Provide the state or county in which:
      • the headquarters of the organization
      • in the case of a natural person, the state or county of the city to which it belongs belongs
    • Country: From the drop-down list, select:
      • country of the organization
      • in the case of a natural person, your country of residence
    • Company: Enter the:
      • organization’s full or abbreviated name
      • in the case of a natural person, his full name
    • Company Division: you can enter the name of the department within that organization.
    • Email: You can specify an email address that can be used to contact you.
    • Passphrase: You can specify a passpharse. Some certificate authorities may require CSRs to have a passphrase.
    • Description: For easier identification, it is a good idea to give a unique name to the CSR file.
    1. Once you have entered the data, click the Generate button.
    2. After generation, the page will display the CSR file in two formats. You will need to copy the text that appears in the Encoded Certificate Signing Request part to the order which looks like this:
      CSR CODE