以下是我搞了半天参考下面的
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/
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名,转载请标明出处;