Creating Self-signed SSL Certificate for your webserver (e.g. Apache2, Lighttpd, and NGINX) :

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