Setup FREE SSL using Let's Encrypt.

Setup SSL

There are multiple services out there offering SSL certificates for your domain, many are paid and a couple are free. Setup SSL no matter what service you use. Let's Encrypt is very easy, and free, to use. Let's Encrypt is a non-profit organization backed by many tech giants.
Installation
Run the following commands, and follow the prompts.
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo certbot --nginx
sudo certbot renew --dry-run
If you go to your Vultr instance now using HTTPS, you will see a secure website.
Renewal
Your newly issued certificate will expire, and will need to be renewed periodically. The easiest way to do this is to set up a cron job.
sudo crontab -e 
30 2 * * 1 /usr/bin/certbot renew 
As a final, but optional step, reboot your VM and make sure all services restart as expected.

Comments

Popular Posts

How to pass hash in Postman

nginx: unrecognized service

Bootstrap Select Picker append add new item if search not exist

Reading Excel Sheets using "Roo" gem in ruby on rails

Add CORS to Nginx on AWS Elastic Beanstalk

Enable gzip compression on Elastic Beanstalk with nginx

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Get video duration by URL in Ruby on Rails

site-enables nginx setting in ruby in rails