How to install SSL on cPanel

Let’s start with the activation of the certificate. Firstly, log into your Namecheap account, find the Product List – SSL Certificate button, and click “Activate”.

Let’s start with the activation of the certificate

 

As you click the button, you will immediately see a certificate activation window.

As you click the button

 

Secondly, go to cPanel of the hosting to activate the certificate.

Secondly, go to cPanel of the hosting to activate the certificate

 

Next, scroll down until you see SSL/TLS.

Next, scroll down until you see SSL/TLS.

 

Click on SSL/TLS menu:

Click on SSL/TLS menu

 

Choose Certificate Signing Requests (CSR).

Choose Certificate Signing Requests (CSR)

 

As you click on Certificate Signing Requests (CSR), you will be redirected to the menu where you can input the data for the certificate.

As you click on Certificate Signing Requests (CSR), you will be redirected to the menu where you can input the data for the certificate

 

Find the “Key” field and choose 2,048 bit key (default setting).

Find the “Key” field and choose 2,048 bit key (default setting)

 

Next, type the name of your domain (tour111.com in our case) in the “Domain” field.

Next, type the name of your domain (tour111.com in our case) in the “Domain” field

 

After that, fill in all the needed fields: City*→State*→Country*→Company*(you can type any name)→Company Division (any name as well) →Email

After that, fill in all the needed fields

After that, fill in all the needed fields

 

When everything is ready, click on that “Generate” button.

When everything is ready, click on that “Generate” button

 

Here we have an already generated CSR request for the activation of our certificate.

Here we have an already generated CSR request for the activation of our certificate

 

Copy the code, which you can see in the Encoded Certificate Signing Request. It is extremely important to copy without spaces.

Copy the code, which you can see in the Encoded Certificate Signing Request

 

Go to the browser tab where we have logged in the NameCheap account with a certificate. Paste the copied CSR code into the “Enter CSR” field and wait until it downloads.

Go to the browser tab where we have logged in the NameCheap account with a certificate

 

When the download finishes, you’ll see your domain in the “Primary” field. Click on “Next”.

When the download finishes, you’ll see your domain in the “Primary” field

 

Click on the tick in “Any other server (cPanel, Apache, NGINX, etc.)” and on “Next” one more time.

Then choose the verification method (you can do it with email of the hosting – admin@tour111.com, or alternatively via the file on the hosting). I prefer the second method as its faster. Note that the domain should have already be attached to your hosting. Find DCV method field and choose HTTP-based to do that. Click “Next”.

Click on the tick in “Any other server (cPanel, Apache, NGINX, etc.)” and on “Next” one more time

Click on the tick in “Any other server (cPanel, Apache, NGINX, etc.)” and on “Next” one more time

Fill in the email field and press “Next” button again.

Fill in the email field and press “Next” button again

Then just click on “Submit”.

Then just click on “Submit”

We are redirected to the admin panel of the certificate. Scroll down to “Certificate Versions”.

We are redirected to the admin panel of the certificate

 

Click on “See Details”.

Click on “See Details”

 

Find the tiny button next to “Edit Methods” and click on it.

Find the tiny button next to “Edit Methods” and click on it

 

You will see a pop-up window.

You will see a pop-up window

 

There you will see where you should send the file on hosting – /.well-known/pki-validation/. Download the file and go back to cPanel.

There you will see where you should send the file on hosting

 

Move to File Manager.

Move to File Manager

Move to File

 

Find the “Settings” button and click on it. The button will be in the upper right corner.

Find the “Settings” button and click on it

 

Put a tick near “Show Hidden Files (dotfiles)” in the pop-up window.

 

Put a tick near “Show Hidden Files (dotfiles)” in the pop-up window

 

Save the changes.

Go back to File Manager and move to the folder.

Go back to File Manager and move to the folder

Go back to File Manager and move to the folder

Move to the /.well-known folder. If it isn’t there, create it. Click the “Folder” button in the upper left corner.

Move to the /.well-known folder. If it isn’t there, create it

create the name of the folder

create the name of the folder

And create a new folder.

Next, move to the /.well-known folder. Use the same method to create a pki-validation folder.

Next, move to the /.well-known folder. Use the same method to create a pki-validation folder

Move to the fresh folder and upload the file we have already downloaded.

Move to the fresh folder and upload the file we have already downloaded

 

Choose the file in the pop-up window and click on “Select”.

Choose the file in the pop-up window and click on “Select”

 

Select the needed file. It should be downloaded to your computer.

Select the needed file. It should be downloaded to your computer

 

It is better to save the file directly to the public_html folder.

It is better to save the file directly to the public_html folder

 

Go back to the admin panel of the certificate and refresh the tab several times until it will be confirmed. As you are done, you will see that the Certificate Status – Issued will be colored in green just like on the screenshot.

Certificate Status - Issued will be colored in green just like on the screenshot

 

Click on the corresponding button to download the certificate.

Click on the corresponding button to download the certificate

 

Move to the folder where you saved the certificate and unzip it.

As soon as you finish, go to cPanel hosting, which you can find in the SSL/TLS menu in File Manager.

Move to the folder where you saved the certificate and unzip it

 

Go to Certificates (CRT) menu.

Go to Certificates (CRT) menu

 

You will see the next pop-up window:

You will see the next pop-up window

 

Scroll down until you see Choose a certificate file (*.crt).

Scroll down until you see Choose a certificate file (*.crt)

 

Choose the certificate file (you will have three files of different format, choose the .crt one).

Choose the certificate file (you will have three files of different format, choose the .crt one)

 

Click on Upload Certificate.

Click on Upload Certificate

 

As you see that certificate has been saved, click on Go Back.

As you see that certificate has been saved, click on Go Back

 

You will be redirected to the good old tab. There you can check that the download is successfully finished.

You will be redirected to the good old tab. There you can check that the download is successfully finished

 

Push the “Install” button.

Push the “Install” button

 

As you hit the button, you can see that all the fields have been automatically filled in.

As you hit the button, you can see that all the fields have been automatically filled in.

 

Scroll down the page and click on Install Certificate.

Scroll down the page and click on Install Certificate

 

Next, you will see a pop-up window informing you about the successful installation of the certificate. Click on OK.

Then you need to go to the admin panel of the website. Move to Settings → General

Next, you will see a pop-up window informing you about the successful installation of the certificate

 

We need to change the protocol of the website. Find WordPress Address (URL) and Site Address (URL) fields and just add s to http.

We need to change the protocol of the website. Find WordPress Address (URL) and Site Address (URL) fields and just add s to http

 

Scroll down and save the changes.

Scroll down and save the changes

 

Go back to your hosting in cPanel in File Manager. Then go to the Public_html folder.

Go back to your hosting in cPanel in File Manager

Go back to your hosting in cPanel in File Manager

 

Open .htaccess file. You’ll see a pop-up window: click on Edit.

Open .htaccess file. You’ll see a pop-up window: click on Edit

 

.htaccess file will be opened in the new tab where it can be edited.

htaccess file will be opened in the new tab where it can be edited

We need to insert the redirect code from http to https, for this we copy the following code:

RewriteCond %{SERVER_PORT} !^443$

RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

and insert it into the file after the lines:

RewriteEngine On

RewriteBase /
This is how it looks like.

We need to insert the redirect code from http to https

Save Changes

Our next step is to save the changes in the .htaccess file. Click on the corresponding button in the upper right corner.

Save Changes

 

Finally, go to the website and check whether it works right. If everything is alright, in the address bar of the website there will be a lock (grey for Chrome and green for Opera).

Possible issues:

The certificate won’t work if your hosting has no IP address. In this case, create a ticket for the support team, attach a zip with an SSL certificate, and write a message that your certificate does not work. Usually, they fix the problem almost immediately, and everything works smoothly.

 

img

by Demian San

customers reviews

write review

img

rate and write review

Write a Reply or Comment