CodeClouds Color Logo CodeClouds White Logo

WEB HOSTING | 27 July 2016

Free SSL | SSL Installation Guide on Ubuntu 14.04 with WHM

Want the benefits of SSL but can’t afford it? Or don’t know how to do it? This step-by-step guide will have you set up with a free SSL certificate in less than two minutes.

SSL can bring many of advantages to your business, including increased trust from your visitors to higher search rankings with search engines. An issue for many small businesses or individuals who would love to take advantage of this extra security is the cost. SSL can be a very costly installation, with companies like Symantec offering certificates for thousands of dollars. For small bloggers or small businesses who would like the ‘green-lock’, this is definitely not viable.

free ssl installation guide

Today we’re going to go over the steps that I took to install HTTPS/SSL on my WHM/CPanel server for free.

A few days ago when setting up my own personal server, I was looking everywhere for a cheap, certified SSL certificate. I looked everywhere and tried everything. The closest I got was a self-signed cert, that showed a dangerous looking popup when my visitors opened my site, that wasn’t ideal…

I was about to give up when I found Letsencrypt, they stated they would provide certified signed SSL certificates for free, this made me skeptical, but after seeing sponsorships from Google, Facebook, and CISCO I became hopeful.

Installation:

Located under the certificates page, they recommend people should start off with the CertBot client. The client is easy to use, a well-documented system that works on most operating systems. After heading to the CertBot page, we’re asked to provide our operating system and origin server so they’re able to provide us with server-specific documentation.

After I selected ‘Apache on Ubuntu 14.04’, I was provided with some command lines to run. I then headed over to my terminal and connected to my server via SSH. After running just six commands I was now the proud owner of a certified, auto-renewing SSL certificate.

Below you’ll find a copy of the SSL installation guide I followed for Apache on Ubuntu 14.04:

Install
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

Get Started
CertBot has a fairly solid beta-quality Apache plugin, which is supported on many platforms, and automates both obtaining and installing certs:
$ ./path/to/certbot-auto --apache

If you’re feeling more conservative and would like to make the changes to your Apache configuration by hand, you can use the certonly subcommand:
$ ./path/to/certbot-auto --apache certonly

Automating renewal
Let’s Encrypt certificates last for 90 days, so it’s highly advisable to renew them automatically! You can test automatic renewal for your certificates by running this command:
./path/to/certbot-auto renew --dry-run

If that appears to be working correctly, you can arrange for automatic renewal by adding a cron or systemd job which runs the following:
./path/to/certbot-auto renew --quiet --no-self-upgrade

After Installation, I was given a file location for my newly created certs. For me this was at /etc/letsencrypt/live/reade.co.nz/. There I was able to access:
cert.pem, chain.pem, fullchain.pem, and privkey.pem

After checking the contents of the cert.pem file, I headed over to my WHM GUI and search for the ‘Install an SSL Certificate on a Domain’ page, there I added the contents of cert.pem and privkey.pem files.

Hire DevOps Engineers

After I hit ‘save’, I then headed over to my browser and was successfully able to access my site via https.

Originally written July 27, 2016. Last updated September 8th, 2020

 Views

Written by CodeClouds

CodeClouds provides effective and quality solutions for various web technologies. We have responsive and swift communication 18/5 and deliver quality development services around the globe.

  • facebook
  • twitter
  • linkedin
  • pinterest
  • whatsup
Related Articles
Shared Servers, Virtual Private Servers, and Serverless Computing Explained

WEB HOSTING | 22 June 2020

Shared Servers, Virtual Private Servers, and Serverless Computing Explained

Today we’re going over three types of servers- Shared Servers, Virtual Private Servers, and Serverless Computing.

How to Install a Free SSL Certificate on a CentOS 7 Server with NGINX

WEB HOSTING | 06 November 2019

How to Install a Free SSL Certificate on a CentOS 7 Server with NGINX

In 2019, it’s so easy to get a basic form of SSL that no website should be without it, no matter the use. Not only is it best practice, a non encrypted connection now displays a warning in your browser, which makes loses user trust. In this blog post, we’ll go over how to install a Let’s Encrypt certificate on an NGINX based website.