How To Install Let’s Encrypt SSL certificate on Ubuntu

Now it become very easy to get rid of  paying for SSL. Let’s encrypt will help you in setting up  free SSL on the website.

We can install Lets Encrypt for apache or nginx on RHEL, Centos,debian or ubuntu.

Now let’s take a look onto the procedure of installing SSL on a domain :

STEP-1  Ensure status of apache SSL module and apache default SSL virtual host.Both must be Enabled and activate


Command :

$ sudo a2enmod ssl
$ sudo a2ensite default-ssl.conf
$ sudo service apache2 restart

STEP-2   Now we need to install Free let’s Encrypt client. For this we will install GIT package to clone the Let’s Encrypt git repository.

Command :

$ sudo apt-get –y install git 
$ cd /usr/local
$ sudo git clone

STEP-3   Now we generate a SSL certificate for apache. The process of obtaining a SSL Certificate for Apache is automated thanks to Apache plugin. Now we can Generate the certificate by issuing the following command  against your domain name.

Command :

  • For a single domain
$ sudo ./letsencrypt-auto --apache -d
  • For multiple domains or subdomains
$ sudo ./letsencrypt-auto --apache -d –d www.

NOTE :  ‘-d’ flag must be using before each domains and subdomains.

STEP-4  Now verify your email that it will ask and choose if clients can browse your domain using http protocols  or redirect all the non-secure requests to HTTPS. It will process to finish the installation of let’s encrypt.

STEP-5 you will get the congratulation message on the console after successful installation.

Now anybody can access your domain name using HTTPS protocol.

It’s done.

Enjoy 🙂


Also Reads : How to Install Laravel

One thought on “How To Install Let’s Encrypt SSL certificate on Ubuntu

Leave a Reply

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