Install Let’s Encrypt Free SSL on Ubuntu VPS

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

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Comment