How to secure Lighttpd with Let's Encrypt TLS/SSL certificate on Debian/Ubuntu

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

I read your Nginx and Let’s Encrypt free SSL certificate tutorial. However, I use Lighttpd web server on AWS cloud. How do I secure my Lighttpd web server with Let’s Encrypt free SSL certificate on my Ubuntu Linux 16.04/18.04/20.04 LTS or Debian Linux 8.x/9.x/10.x server? How can I configure Lighttpd with Let’s Encrypt free TLS/SSL certificate?