请稍候...
  • 通配符证书Wildcard SSL,部署全网HTTPS必备
  • 为什么使用企业型SSL证书?
  • 增强型证书EV SSL,完美支持地址栏显示中文企业名称
  • HTTPS今天你用了吗?
  • 多域名SANS/UCC SSL证书,全面支持Exchange Server 2..
  • 选择SSL证书产品遇到问题?

Lighttpd Server - 安装SSL证书

点击数:222014-12-08 09:52:34 来源: 中国数字证书CHINASSL

Lighttpd Server SSL Certificate Installation

  1. Copy the Certificate files to your server.

    Log in to download your Intermediate (ChinasslCA.crt) and Primary Certificates (your_domain_name.crt) from within your CHINASSL Customer Account, then copy them to the directory on your server where you will keep your certificate and key files. Make them readable by root only.

  2. Concatenate the certificate and key file.

    You need to concatenate the key file and the certificate file into a single pem file by running the following command:

    cat yourdomain.key yourdomain.crt > yourdomain.pem
          
  3. Edit the Lighttpd configuration file.

    Now open your lighttpd.conf file and add the following:

           var.confdir = "/etc/lighttpd"
    $SERVER["socket"] == "188.188.188.188:443" {
    ssl.engine = "enable"
    ssl.pemfile = var.confdir + "/yourdomain.pem"
    ssl.ca-file = var.confdir + "/ChinasslCA.crt"
    server.name = "yourdomain.com"
    server.document-root = "/my/document/root/"
    }

    Make sure that the var.confdir (/etc/lighttpd) matches the location where you saved your certificate files. Also change the IP address (188.188.188.188) to match your IP address.

  4. Restart Lighttpd.

上一页1下一页