Quick Guide to LetsEncrypt SSL on your Ubuntu 20.04 VPS

 VPS Hosting

Let’s Encrypt is a free Secure Socket Layer (SSL) certificate provider funded by the Electronic Frontier Foundation (EFF) Let’s Encrypt uses a program called Certbot to install and use your certificate on your vps hosting.

This tutorial assumes you are using Ubuntu and the Apache Web server on your vps host. You can find more information on getting Certbot (Let’s Encrypt) on your vps server on Certbot.

First things first. Make sure all of your software repositories are updated and that your system has Certbot’s software available.
sudo apt update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo apt-get update

Install Certbot with the following command:
sudo apt-get install certbot python3-certbot-apache

Obtain a certificate with one of the two follwing commands.
sudo certbot --apache
Or if you just want a certificate without web-server configuration
sudo certbot certonly --apache
Follow the instructions and enter the information as accurately as you can. This is vital for when it asks you to enter a host name (if applicable). Once this is done you can go to https://your-domian.tld and you should have a green SSL lock in your web browser!
You can test the automatic renewal with this command
sudo certbot renew --dry-run

If you still need help or have any further questions, contact us.

Was this article helpful?

Sign up to be alerted of new articles!

We will let you know of any new articles that we publish so that you may benefit from the many upcoming tutorials we have planned for you.