For installing SSL Certificate for domain running in Lighttpd, follow the steps bellow.
Login to the server and download / copy the certificate files.
Once this has been done, you need to concatenate the certificate and key file into a single pem file. For this follow the step below.
#cat yourdomain-name.key yourdomain-name.crt > yourdomain-name.pemNow you need to edit lighttpd.conf file and add the following lines.
# vi /etc/lighttpd/lighttpd.conf
var.confdir = "/etc/lighttpd"
$SERVER["socket"] == "10.10.10.10:443" {
ssl.engine = "enable"
ssl.pemfile = var.confdir + "/yourdomain-name.pem"
ssl.ca-file = var.confdir + "/your.crt"
server.name = "your.domain.com"
server.document-root = "/your/document/root/" }
Make sure that the var.confdir (/etc/lighttpd) is the location where you saved your certificate files. Also change the IP address (10.10.10.10) to your IP address.
Now restart Lighttpd.
#restart lighttpdYou are done. !!!!
No comments:
Post a Comment