Skip to main content

How to Generate a Private Key and CSR in cPanel

You can generate a Certificate Signing Request (CSR) and a corresponding private key directly within cPanel. This process allows you to request an SSL certificate from a Certificate Authority (CA) to secure your website's connection.

You can generate a Certificate Signing Request (CSR) and a corresponding private key directly within cPanel. This process allows you to request an SSL certificate from a Certificate Authority (CA) to secure your website's connection.

Before you begin

You will need:

  • A cPanel account

  • The specific domain name or subdomain for which you need the certificate

Generate a Private Key and CSR

  1. Log in to your cPanel account.

  2. Locate the Security section and select SSL/TLS Manager.

  3. Click on Certificate Signing Requests (CSR).

  4. Enter the following information:

    • Key Type: Select RSA (this is the standard for most websites).

    • Key Size: Enter 2048 (this is the recommended minimum size).

    • Domains: Enter the fully qualified domain name (e.g., example.com).

    • Company: Enter your legal business name or organization name.

    • City: Enter the city where your business is located.

    • State: Enter the state or province.

    • Country: Select your country from the dropdown menu.

    • Email: Enter a valid contact email address.

  5. Click Generate.

Confirm the result

After clicking Generate, cPanel will display your new CSR and the associated private key.

  • The CSR will appear in a text box. You must copy and save this text to provide it to your Certificate Authority.

  • The private key will be displayed in a separate box.

Important: You must save the private key immediately. If you lose the private key, you will be unable to install the SSL certificate once it is issued by the Certificate Authority.

Limitations

The private key generated in this step is unique to the CSR. If you generate a new CSR for the same domain, the previous private key will no longer be valid for use with that domain.

Did this answer your question?