Project

General

Profile

Actions

HowToSimpleSSL » History » Revision 1

Revision 1/40 | Next »
Anonymous, 2006-07-19 12:44
A simple SSL setup with lighttpd


Setting up a simple SSL configuration with Lighttpd is very simple. Though this method should be used with care. This setup will only provide proper encryption, not authentication! The user will be presented with a query whether to accept the certificate or not!

First, go into the SSL Certs directory and do: {{{
cd /etc/ssl/certs
openssl req -new -x509 -keyout lighttpd.pem -out lighttpd.pem -days 365 -nodes
chown www-data:www-data lighttpd.pem
chmod 600 lighttpd.pem
}}}

Then edit /etc/lighttpd/lighttpd.conf and add: {{{
ssl.engine = "enabled"
ssl.pemfile = "/etc/ssl/certs/lighttpd.pem"
}}}

After this you should be able to access your webserver through https.

Updated by Anonymous over 18 years ago · 40 revisions