In this article, we are going to explain to you how to get a Free SSL certificate for your website and easily install it by yourself.
In terms of SEO and Security, SSL is a very important thing. Google shows all non-SSL websites as “Not Secure” and due to this user can not trust your websites and you lose your valuable customers.
If you go with paid SSL it will cost you more and if you are a beginner blogger or small business then paid SSL might be not affordable to you.
That’s why Free SSL is the best idea to reduce your website cost.
Prerequisite for Free SSL
- SSH Client with root access
- Apache [ Can be different ]
- Ubuntu OS 18.04 [ Can be different ]
- Domain name configured with your hosting
1. Visit Website – https://certbot.eff.org
Select your web server for example Apache, Nginx and then select your operating system, for example, Ubuntu 18.04 LTS (bionic)
2. Connect SSH
Now connect your SSH with root user and then enter following commands one by one.
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository universe
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
3. Install Certbot
Enter the below command to install Certbot. It will manage your SSL certificate.
$ sudo apt-get install certbot python-certbot-apache
4. Get Your Free SSL
Now enter below command to get your free SSL and it will automatically do the configuration with your web server.
$ sudo certbot —apache
It will show a list of all the domain name which are configured with your hosting.
Now type appropriate number separated by commas or leave blank to select all domain for free SSL configuration and hit enter.
5. Force Redirect to HTTPS
In the last step, Certbot will ask you to select number 1 or 2
1 is for no force redirection of your domain to HTTPS
2 is for force redirection of your domain to HTTPS
Hit enter and your Free SSL is successfully configured with your domain name. You can check your SSL connection by entering your domain name into a browser and click on the lock icon as shown in the below image.
6. Automatic Renewal
Certbot provides an SSL certificate with the validity of 90 days, but you don’t have to worry about it. You can renew your SSL just by typing single command.
$ sudo certbot renew --dry-run
We hope this Free SSL tutorial will help your business website. If you face any difficulty while configuring SSL then just drop a message in comment section below and stay tuned for more stuff like this.