How to configure Nginx with Let's Encrypt on CentOS 8

Originally published at: https://www.cyberciti.biz/faq/configure-nginx-with-lets-encrypt-on-centos-8/

How do I secure my Nginx web server with Let’s Encrypt free ssl certificate on my CentOS 8 server? How to set up and configure Nginx with Let’s Encrypt on CentOS 8?