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
Post a Comment