Bobcares

How to Generate CSR in cPanel

PDF Header PDF Footer

Learn how to generate CSR in cPanel. Our cPanel Support team is here to help you with your questions and concerns.

How to Generate CSR in cPanel

In the world of online security, Secure Socket Layer (SSL) Certificates play a key role. Furthermore, these certificates make sure that data transfer between servers and browsers is secure. SSL certificate generation consists of two key components:

  • Certificate Signing Request (CSR)
  • RSA key
Here is an overview of what we are going to take a look at today:
  1. What is a CSR?
  2. How to Generate a CSR in cPanel
  3. How to install a Third-Party SSL Certificate in cPanel
  4. How to install SSLs in WHM

What is a CSR?

CSR, short for Certificate Signing Request is a block of encrypted text. This text is made of important information like organization name, domain name, locality, and country, along with public keys.

Furthermore, the CSR is generated by the server where the SSL certificate will be installed and is used by the SSL certificate provider to create the certificate itself.

How to Generate a CSR in cPanel

  1. To begin with, log into the cPanel account.
  2. Then, locate and click SSL/TLS Manager in the Security section.
  3. Next, click “Generate, view, or delete SSL certificate signing requests” under the CSR menu.
  4. At this point, we have to generate a new 2048-bit key or choose a previously generated private key.
  5. Then, enter this information for the information for the CSR code. Remember to use only alphanumeric characters.

    How to Generate a CSR in cPanel

    • Domains:

      We have to enter the fully qualified domain name for SSL activation (common name). For Wildcard certificates, we can represent the common name with an asterisk in front of the domain. To generate CSR codes for multiple domains, we have to enter each domain on a new line.

    • City:

      Now, enter the complete name of our city or locality without abbreviations.

    • State:

      We have to enter the complete name of our state or region.

    • Country:

      Then, select our country from the provided drop-down list.

    • Company:

      We have to specify the officially registered name of our business. For Organization and Extended Validation certificates, Certificate Authorities will verify the submitted organization. Also, for Domain Validation SSLs, this field will not be listed on the issued certificate (use “NA” if the organization is not registered).

    • Company Division:

      Then, enter the name of a division or department in the indicated organization. For Domain Validation certificates, we can enter “NA.”

    • E-mail:

      We have to enter our e-mail address. The e-mail used for CSR generation will not be used for domain control validation or for receiving the issued certificate. It can be left blank.

    • Passphrase:

      This field is currently considered obsolete and can be left empty. It was originally designed as an additional verification parameter.

    • Description:

      Then. include keywords to easily identify a specific CSR in the list.

  6. Then, click the Generate button.
  7. Then, we will be taken to the page with the new CSR code. Now, use the Encoded Certificate Signing Request to activate the certificate. We have to include
    —–BEGIN CERTIFICATE REQUEST—–
    and
    —–END CERTIFICATE REQUEST—–
    when we submit the CSR code for SSL activation.

Alternatively, we can accomplish the same task manually as well. In order to do this, we need to access our server through SSH or the Terminal feature in WHM to run commands on the server.

  1. First, access the server via SSH or open a terminal to run these commands:
    openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out csr.csr

    This will create a private key for the SSL, and the CSR.

    Our experts would like to point out that the command will generate these files in the cwd for our session. By default, this is the secure home directory for the active user. So remember not to run them in a publicly accessible location.

  2. Now, we have to enter the information as per the prompts.
  3. At this point, we will have 2 files “private.key” and “csr.csr”. Then, we can import these files via the accounts cPanel interface with the SSL/TLS feature.
    Furthermore, the private key is stored on the server locally. We will need it during the installation process after the CA issues the certificate.

  4. Now, CA will carry out a few validation steps according to the type of certificate we have chosen.

The system saves this information in these directories on our servers:

  • CSR — /var/cpanel/ssl/system/csrs
  • SSL certificates — /var/cpanel/ssl/system/certs
  • Private keys — /var/cpanel/ssl/system/keys

As mentioned earlier, the generated CSR is important for obtaining an SSL certificate for our website. We have to provide the CSR to our chosen certificate provider during the certificate purchase process. The CA will then use the CSR to create a digital certificate. We can then install the certificate on our web server for secure, encrypted connections.

This is why we need to keep our private key secure, as we need it for installing the SSL certificate. Additionally, we have to follow the instructions provided by our hosting provider and cPanel version, as the interface may vary.

How to install Third-Party SSL Certificate in cPanel

If we send our CSR to a CA, we will get a matching SSL certificate that we can install on the server to use for our website.

  1. First, access the cPanel SSL/TLS Manager.
  2. Then, click “Generate, view, upload, or delete SSL certificates”.
  3. Next, we can paste our certificate info into the Paste your certificate below box and then click Save Certificate. Alternatively, we can click Choose File to browse for the certificate file and click Upload Certificate.

How to install SSLs in WHM

Once we get a copy of our SSL Certificate, we can install it in our WHM as seen below:

  1. First, log in to WHM.
  2. Then, click SSL/TLS and click the Install an SSL Certificate, followed by Setup the Domain button.

    Remember to choose the domain we are installing the certificate for, leaving the IP field on Auto-discover in the Domain section.

  3. We will come across three fields:
    • crt:

      Here, we have to copy and paste the contents of the .crt file. Alternatively, we can add the Certificate info from the previous section if we are installing a self-signed certificate.

    • key (Private Key)

      Next, we have to copy and paste the contents of the .key file. Alternatively, we can add the Key info from the previous section if we are installing a self-signed certificate.

    • ca bundle

      Then, we have to copy and paste the contents of the ca bundle. We will get this when we purchase an SSL. We will not have one if it is a self-signed certificate.

    • Next, our experts recommend enabling “Enable SNI for Mail Services” only if we are using the certificate for email. If not, then we are using the existing server’s certificate for mail.

In the world of online security, CSR and RSA keys are crucial. These components play key roles in the creation of SSL certificates by ensuring secure and encrypted communication between servers and browsers. By following proper procedures for generating CSRs and RSA keys, website owners can fortify their online presence and protect sensitive user information.

Let us know in the comments if you need further help with generating a CSR certificate in cPanel.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts demonstrated how to generate CSR in cPanel.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US

GET UP TO 25% OFF

cPanel Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF