How to configure Nginx with Let's Encrypt on Debian/Ubuntu Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-configure-nginx-with-free-lets-encrypt-ssl-certificate-on-debian-or-ubuntu-linux/

How do I secure my Nginx web server with Let’s Encrypt free ssl certificate on my Ubuntu Linux 14.04/16.04 LTS or Debian Linux 8.x/9.x server?