HTTPS, the secure version of HTTP, becomes mandatory for websites/apps. HTTPS certificate used to cost money, but now it’s free thanks to Let’s Encrypt.
Enables HTTPS is very simple as well. It only takes 2 steps.
Note that this post also applies to Ubuntu and Debian.
certbot is the commandline tool for Let’s encript. We will Install
python-certbot-nginx to get it.
sudo apt-get install certbot python-certbot-nginx
Next simpllly run
sudo. We use sudo because
cert bot will download the HTTPS SSL certificate and modify Nginx config file automatically.
sudo certbot --nginx
After answering a few questions, you are good to go. Open your website prefixed with https. You will see a lock icon before you website url.
The certificate is valid for 3 months, which is pretty short.
But don’t worry about renewing, it will automatically do this.
certbot automatically add a
cron job in