Install Let’s Encrypt Free SSL on Ubuntu VPS

Install Lets Encrypt on Ubuntu
Expert Contributor Rajesh Chauhan

Let’s Encrypt is one of the fastest growing SSL certificate solutions available for free of cost, but it’s not that easy to install their module on cPanel, or any other third party solutions. However, if you are using VPS or Digital Ocean Droplets and you are managing your website on naked VM (without any control panel) then it could be frustrating to install Let’s Encrypt SSL Certificate to secure your website.

Install Let’s Encrypt on Ubuntu

There is an automation tool available to configure this Domain Validation level SSL on your Ubuntu 16.04 or 14.04 based droplet or Virtual Machine. First of all we need to download and Install Certbot-auto using these simple command lines…

$ sudo wget -O /usr/sbin/certbot-auto
$ sudo chmod a+x /usr/sbin/certbot-auto

Issuing SSL for Domains

As let’s Encrypt based on Domain Validation (DV) due to which you make to make sure your that your domain name is resolving correct IP address of your server else it wouldn’t able to validate your domain name.

And make sure you issue certificate for www and non-www extension to avoid further issues

$ sudo certbot-auto  certonly --standalone -d  -d

Validating Files

When you are done with these commands successfully, certificate files will be placed under below path.

$ cd /etc/letsencrypt/live/
$ ls

Now you can configure it in your virtual host.

Force SSL Redirect

If you want to redirect http url to https url forcefully then you can use these lines in your .htaccess file

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$$1 [R,L]

Contact for VPS Hosting

Know this GoogieHost Writer 😂

Rajesh Chauhan

GoogieHost is one of the leading free web hosting provider on the internet over 300000 satisfied clients across the globe. We also offer Affordable SEO Web Hosting and Digital Marketing service to give give wings to your online business. Unlimited FREE HOSTING.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.