Lighttpd SSL安装文档


下载apache格式的证书。

www.domain.com.crt 域名证书
www.domain.com.key 私钥
www.domain.com.ca-bundle 根证书

 

步骤一 : 合并证书

Linux下面:

cat www.domain.com.key www.domain.com.crt  > www.domain.com.pem

Windows

用notepad++ 把www.domain.com.key和 www.domain.com.crt 文件的 内容追加到 www.domain.com.pem

 

步骤二, 编辑lighttpd配置文件

var.confdir = "/etc/lighttpd"
$SERVER["socket"] == "111.111.111.111:443" {
ssl.engine = "enable"
ssl.pemfile = var.confdir + "/www.domain.com.pem"
ssl.ca-file = var.confdir + "/ca-bundle.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

免备案空间专题