让我们加密在ssllabs.com上获得A +级。此服务器的证书链不完整。等级上限为B.

时间:2016-03-04 05:30:57

标签: ssl encryption https ssl-certificate lighttpd

我正在尝试使用lighttpd和acme-tiny脚本为我的网站获得A +级。步骤如下:

  1. 创建一个Let's Encrypt帐户私钥:
  2. openssl genrsa 4096> account.key

    1. 为域(单个域)创建证书签名请求(CSR)
    2. openssl genrsa 4096> domain.key

      openssl req -new -sha256 -key domain.key -subj“/CN=mysitehere.com”> domain.csr

      1. 制作网站托管挑战文件
      2. mkdir /var/www/.well-known/acme-challenge /

        1. 获取签名证书
        2. python acme_tiny.py --account-key ./account.key --csr ./domain.csr --acme-dir /var/www/.well-known/acme-challenge/> ./signed.crt

          1. 安装证书
          2. wget -O - https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem> intermediate.pem

            cat signed.crt intermediate.pem> chained.pem

            cat domain.key chained.pem> mysitehere.pem

            lighttpd-enable-mod ssl

            /etc/lighttpd/conf-enabled/10-ssl.conf

            $SERVER["socket"] == "0.0.0.0:443" {
            ssl.engine  = "enable"
            ssl.pemfile = "/root/letsencrypt/mysitehere.pem"
            ssl-ca-file = "/root/letsencrypt/chained.pem"
                ssl.dh-file = "/root/letsencrypt/dhparams/dhparams.pem"
                ssl.cipher-list = "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA "
            ssl.honor-cipher-order = "enable"}
            

            一切似乎都好。 https working。

            在ssllabs上测试此设置并获得B级。

              

            证书 - 100%

                 

            协议支持 - 100%

                 

            密钥交换 - 90%

                 

            密码强度 - 90%

                 

            此服务器的证书链不完整。连锁问题不完整

            证书提供1(1532字节)

            服务器发送mysitehere.com指纹SHA1:e0f6d98733915 ......

            额外下载让我们加密权限X1 ......

            在信任存储区DST根CA X3自签名

            如何制作文件mysitehere.pem正确的方法,以避免从加密网站额外下载并从ssllabs获得A级?

            谢谢!

1 个答案:

答案 0 :(得分:2)

ssl-ca-file应为ssl.ca-file