CN2.HK provides cloud servers、CDN、SSL and Domain, Help businesses grow rapidly.

CN2.HK CN2.HK

服务热线:400 888 0543

服务邮箱:idc@cn2.hk

Lighttpd SSL安装文档


下载apache格式的证书。

cert.crt 域名证书
private.key 私钥
ca.crt 根证书

步骤一  : 合并证书

Linux下面:

cat private.key cert.crt > cert.pem

Windows

用notepad++ 把private.key和 cert.crt 文件的 内容追加到 cert.pem

 

步骤二, 编辑lighttpd配置文件

var.confdir = "/etc/lighttpd"
$SERVER["socket"] == "111.111.111.111:443" {
ssl.engine = "enable"
ssl.pemfile = var.confdir + "/cert.crt"
ssl.ca-file = var.confdir + "/ca.crt"
ssl.use-sslv2 = "disable"
ssl.use-sslv3 = "disable"
ssl.honor-cipher-order = "enable"
ssl.cipher-list = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
ssl.use-compression = "disable"
server.name = "www.domain.com"
server.document-root = "/home/wwwroot/"
}

步骤三 重启Lighttpd

嘿,需要帮助吗?