Secure nginx with Let's Encrypt on Ubuntu 18.04

Image source letsencrypt.org Configure Let's Encrypt SSL for Nginx webserver on Ubuntu 18.04. Let's Encrypt is a CA authority that provides free SSL certificates. You can get a certificate for web server like apache and Nginx . In this tutorial, I will explain you how to obtain ssl certificate using Certbot in the ubuntu server and make your website more secure. We will use Nginx web server in this tutorial. Prerequisites Setup Ubuntu 18.04 server with running Nginx webserver. Domain name, In this tutorial I will use linuxguru.ml & www.linuxguru.ml domain. You can buy a free domain on https://my.freenom.com/ . Install certbot. Certbot is an EFF tool that obtains a certificate from Let's Encrypt and Automatically enable HTTPS on your website. So let's install Certbot on Ubuntu 18.04. We assume that you have installed Nginx before. Add the repository : add-apt-repository ppa:certbot/certbot This is the PPA for packages prepa