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
$ 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.
$ sudo apt-get –y install git $ cd /usr/local $ sudo git clone https://github.com/letsencrypt/letsencrypt
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.
- For a single domain
$ sudo ./letsencrypt-auto --apache -d your_domain.com
- For multiple domains or subdomains
$ sudo ./letsencrypt-auto --apache -d your_domain.com –d www. your_domain.com
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.
Also Reads : How to Install Laravel