Let's Encrypt 免费证书使用

发布于 2016-07-14 / Linux / 0条评论 / 662浏览

以下是我搞了半天参考下面的
website-ssl.sh
imququ
acme.sh

1、下载工具包>

curl https://get.acme.sh | sh

2、获取证书(需要80端口)>

acme.sh --issue --standalone -d denghb.com

3、Nginx简单配置SSL

server {
    listen 443 ssl;
    listen [::]:443 ssl ipv6only=on;
    server_name denghb.com;

    ssl on;
    ssl_certificate /root/.acme.sh/denghb.com/fullchain.cer;
    ssl_certificate_key /root/.acme.sh/denghb.com/denghb.com.key;
}

https://denghb.com/
没有变绿是因为统计代码有http请求

nginx ssl 配置https://s.how/nginx-ssl/

评论
站长统计