Tutorial Install SSL on Lighttpd webServer
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
#add vhost SSL to lighttpd.conf at the bottom
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/server.pem"
}