Install SSL on Lighttpd

Lighttpd is a bit different from apache (httpd) server.

You can install one of the other articles available to generate your CSR for your certificate. This article will describe what you need to do to install a SSL cert on lighttpd server. This article assumes your key file is in the same directory as your certificate in .pem format.

1. cat server.key server-cert.pem > server.pem

This line above copies your private key and certificate into a new file with the private key first.

2. edit /etc/lighttpd/lighttpd.conf 

3. add the following lines:

$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/www/ssl/server.pem"
ssl.ca-file = "/www/ssl/ca_bundle.crt"
ssl.use-sslv2 = "disable"
}

4. restart lighttpd

service lighttpd restart


  • 34 Users Found This Useful
Was this answer helpful?

Related Articles

Generating a CSR on Plesk 9

If you are looking to secure your web site you need to install a SSL Cert. Follow the steps below...

Add a SSL Certificate on Plesk 9

You have  your SSL Cert to Plesk 9.Steps for copying the text Login to the Plesk Control...

Generate a CSR on Linux with OpenSSL

If you are on a Linux server chances are you are running OpenSSL. When generating a CSR you need...

SSL Certificate Ordering Process with OCOSA

If you are here, then you are wondering how this process will work. OCOSA sells the same brands...

Generate Self-signed Certificate with PEM output on Linux

Using OpenSSL:You should keep the key at 2048 bits.1. openssl genrsa -out server-key.pem 2048Next...