Free SSL Certificate Ubuntu

Free SSL Cerificate
30 December 2016

Installing Lets Encrypt Free SSL Certificate on Apache Server.

This tutorial will show you how to set up a TLS/SSL certificate from Let’s Encrypt on any linux server with sudo command.
SSL certificates are used within web servers to encrypt the traffic between the server and client, providing extra security for users accessing your application. Let’s Encrypt provides an easy way to obtain and install trusted certificates for free.

Step1:- Download Lets-Encrypt Client
First of all we have to download lets-encrypt client from the reprository and for that we can run following command. This will download and install lets-encryt client.

$ sudo apt-get update
$ sudo apt-get install python-letsencrypt-apache

Step2:- Setup SSl Certificate
Setting up ssl cert is very easy. We just have to run following commands.

$ sudo letsencrypt --apache -d your_domain.com

If you want to install a single certificate which is valid for your subdomains than you have to pass them as parameters like

$ sudo letsencrypt --apache -d your_domain.com -d www.your_domain.com

After the dependencies are installed, you will be presented with a step-by-step guide to customize your certificate options for each domain seprately. You will be asked to provide an email address for lost key recovery and notices, and you will be able to choose between enabling both http and https access or forcing all requests to redirect to https. It is usually safest to require https, unless you have a specific need for unencrypted http traffic.
When the installation is finished, you should be able to find the generated certificate files at /etc/letsencrypt/live. You can check status of SSL Certificate by visitng your website with https://.
Lets-Encrypt certificate is only valid for 3 months so you have to renew it after every 3 months and you can do that by typing follow commands.

$ sudo lets-encrypt renew

By Lakshay Jain

Tags: Cloud