How to Install SSL Certificate on Lighttpd Server

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.67 out of 5)

Step-by-step guide to Install SSL Certificate on Lighttpd

Released in 2003, Lighttpd (pron. lighty) is an open-source web server designed and optimized for high-performance environments. Lighttpd was written by Jan Kneschke as a solution to the problem of handling 10,000 connections in parallel for a single server.

Lighttpd Server SSL Installation Guide

Lighttpd Server SSL Installation Guide

The name Lighttpd is a portmanteau of Light and httpd. Its security, speed, and flexibility make it one of the most efficient web servers – a perfect fit for servers suffering from load problems. The speed of Lighttpd is down to its powerful memory management. It offers a small memory footprint compared to other servers.

Let’s get straight to the crux of the matter without wasting much time. Follow the given steps to install SSL on the Lighttpd server.

Step 1: Download the Intermediate certificate provided by the CA.

Step 2: Copy the contents of the Intermediate certificate and paste it into a text editor (i.e. notepad). Save the file as intermediate.crt.

Step 3: Download the x.509 SSL certificate sent by your CA. Save the file as SSL.crt.



(SSL Certificate)


Step 4: Locate the SSL.crt and the .key files you downloaded. Enter the command below to copy them to your website SSL directory.

# cp ssl.crt /etc/lighttpd/ssl/
# cp yourdomain.key /etc/lighttpd/ssl/

Step 5: Now you must create a .pem file by concatenating .key and .crt files. Enter the following commands to concatenate and setup the permissions.

# cat yourdomain.key ssl.crt > yourdomain.pem
# chmod 0600 yourdomain.pem
# chown lighttpd:lighttpd /etc/lighttpd/ssl/ -R

Step 6: Use the following command to open the Lighttpd configuration file.

# vi /etc/lighttpd/lighttpd.conf

Step 7: Now you must add the following commands to the configuration section.

$SERVER["socket"] == "" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/" = "/etc/lighttpd/" = ""
server.document-root = "/home/lighttpd/"
server.errorlog = "/var/log/lighttpd/"
accesslog.filename = "/var/log/lighttpd/"
ssl.engine = "enable" : Enable lighttpd SSL support
ssl.pemfile = "/etc/lighttpd/" = "/etc/lighttpd/"

Now save and close the file. 

Step 8: Restart the Lighttpd server using the following command.

# /etc/init.d/lighttpd restart


Important Resources


SSL Certificate for Lighttpd Server

green pad lockLighttpd Server only accepts SSL Certificate from a genuine and trusted SSL Certificate Authority. Buy trusted SSL Certificate from at a cheap price with heavy discount rates.

How to enable an SSL certificate on Magento
How to View SSL Certificate Information in Safari
This entry was posted in SSLSecurity by Mit Gajjar. Bookmark the permalink.

About Mit Gajjar

I have been working as SSL security expert for 6 years and i have assisted to plenty of users to solve their technical issues while installation of SSL certificates on their web servers. It’s really great experience working with Platinum Partner Company CheapSSLSecurity to offer the most reliable SSL certificate security solution on the internet. Being Platinum Partner Company of Symantec, GeoTrust Thawte, Comodo, and RapidSSL, CheapSSLSecurity offers the cheapest SSL certificates security on the internet which starts at just only $3.20/yr.