Enable SSL on Lighttpd webServer

 Firt install Lighttpd server, or you can see enable ssl lighttpd with other method


apt install lighttpd


apt install lighttpd-mod-openssl


cd /etc/lighttpd


openssl req -new -x509 -keyout lighttpd.pem -out lighttpd.pem -days 365 -nodes


chmod 400 server.pem


ln -s /etc/lighttpd/conf-available/10-ssl.conf /etc/lighttpd/conf-enabled/10-ssl.conf


systemctl restart lighttpd