Skip to main content

Free SSL : How to install Let’s Encrypt in Cpanel



This blog is free to install an SSL certificate using a shared web hosting to use zerossl.com installation tools. And this tutorial will use letsencrypt from GoDaddy shared hosting, also will work on any hosting provider.

Go to https://zerossl.com/

Click on online tools.

Click on start, under “FREE SSL Certificate Wizard”.


On the right-hand side, you have a field called “Domains”, add your domains

to this. Include yourdomain.com and www.yourdomain.com. (Don’t include HTTP:// or https://).


IMP Note : If you have a subdomain like blog.yourdomain.com, you need to do it separately. Therefore, perform all the steps for the subdomain. Include blog.yourdomain.com the "Domain field." You do not need to include www.blog.yourdomain.com.

Accept the zerossl TOS & let’s encrypt SA by adding check marks.

Click the next button in the top right corner.

Zerossl will generate the CSR (Certificate Signing Request). Loading might take some time.


Once it’s done, click on the download button, to have a backup and click “Next” again.

It’s going to start generating Account Key (Again might take a few minutes).
Once done, download the Account Key and click on “Next” button.


The new page will appear. This is how Letsencrypt will know that you own the domain.

Download the txt files.


Head to your cPanel and click on “File manager” and go to your root folder.




IMP Note  If you are doing this for an addon domain, then just go to the root of that domain. So where ever your index.html or index.php for that domain is.

On root, create new folder .well-known and inside it create an acme-challenge folder.




So your path should look like:
yourdomain.com/.well-known/acme-challenge

Upload the all .txt files inside that you download for zerossl.com site the acme-challenge folder.

Go back to zerossl, and click on the link indicated in the screenshot.

Click on “next”.

Your Certificate is ready now.


Scroll down and download the CRT & Private key.


Go to Cpanel and find SSL or TLS and click on it.


Click on Manage SSL on your site and you should see three fields.


Select the domain you want to install the SSL certificate on.

For other fields, go back to zerossl and copy the CRT (1st key) and paste it into CRT field in Cpanel.


Please note that CRT includes both CRT & Certificate Authority Bundle.

Cut out the Certificate Authority Bundle from CRT and paste it in the 3rd field.

Go to zerossl and copy private key (2nd key).

In Cpanel paste the private key in the 2nd field (Private Key)


You should have three green check marks next to fields; this means everything matches.

At the bottom of the page click on “install certificate”.


Your SSL Certificate is now installed, and you should have https. Test that it works by adding https:// to in front of your domain for example https://www.yourdomain.com.

Redirect always from HTTP to HTTPS

The redirection to HTTPS is easily achieved by adding a bit of code into .htaccess (Hypertext Access) file.
We will tell our Apache-based web server change all URLs with http:// to https://.

This happens before any code of your site is run.
Always redirect from HTTP to https:

1. Go to Cpanel and click on the file manager.

2. On the root folder, create a new file called “.htaccess”. You might have this file already, in that case, edit that file.

3. Hot Tip!  If you can’t see .htaccess file it might be hidden. Here is how to unhide .htacess file.

4. In .htaccess file, add below code and hit save
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Test that this worked by typing http://yourdomain.com it should change to https://yourdomain.com
You are done!

Remember to update the SSL certificate every 90 days.

Thanks for being here. :)

Comments

  1. For instance, an individual site, a shopping basket based web based business site, a blog and different sorts of sites can be dealt with all together utilizing the single web facilitating account. https://onohosting.com/

    ReplyDelete
  2. With the only financial responsibility in the form of a recurring subscription fee, costs are constant and predictable with SaaS. time doctor review

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Speedup your WordPress site with Amazon CloudFront.

Introduction A WordPress performance is quite excellent . The number of WordPress plugins to handle performance is such evidence. But the easiest way to improve your user experience is to accelerate the entire WordPress website using CloudFront. This will help you not only improve site response time reduces the necessary infrastructure, reducing the load on the Web server, so you can reduce the total cost of the infrastructure works WordPress. CloudFront is actually a site can greatly help your site to respond to unexpected load when gained popularity. Today this post is to clarify the method of providing a reasonable standard configuration on the WordPress website or blog. How does CloudFront help? Amazon CloudFront is to improve the user's experience accessing the Web site in several ways: 1.  Anycast DNS is to ensure that customers are routed to the nearest edge location. 2.  The cached content is available to users at the edge position (i

Linux System : Free Employee Monitoring with Automatic Screenshots

Introduction :   A utomatic screen-shots  of Linux system directly import  on your web server with Linux samba server service and scrot command. 1)  Setup web panel UI on your web server :   Get web panel PHP/HTML code from Github URL: https://github.com/raj412/Employee-Monitoring-for-Linux-System It’s work in Linux server LAMP environment(no need database for this configuration ) Defult login username password is admin/1234. You can change username/passwrod from login.php file in line number #6 Login Page : Dashboard : Screenshot Page : 2)  Samba server configuration on web server : I.  Install Samba on your server where you setup Linux screenshot log system web panel. sudo apt-get update sudo apt-get install samba II.  Set a password for your user in Samba sudo smbpasswd -a <user_name> III.  Share gallery-images folder from you web panel. This is my web panel gallery-images p

How to control high traffic load on Apache servers : optimization performance of APACHE2 & PHP-FPM

Everyone handle high traffic loads  on Apache server. During down-time they forget to check server memory . Apache not used lot of memory  still server not responding. All time we restart Apache service and all things will start working good. I also faced same issue numerous time and all-time  used same solution : Restart Apache. After lots of research and reading found one solution. In this blog you see step-by-step guide to apache2 performance settings. System environment: Intel(R) Xeon(R) CPU 3.10GHz, 4 cores | 8GB RAM Ubuntu 16.04 Apache2 version using mpm_event PHP FPM (5.6,7.1) First,  Calculate process size : Download : python script file “ps_mem.py” from Github Open this and ps_mem.py file upload on you server :  https://github.com/raj412/ps_mem chmod a+x ps_mem.py sudo python ps_mem.py Output like this:  See here : 12 Apache processes, consuming a total of  35.7MiB, so each Apache process is using roughly 3MiB of RAM. The 42 php-fpm process u