网站配置letsencrypt加密证书

ZephyrXT 发布于 阅读:77

1.https://letsencrypt.org/

2.https://kyle.io/2015/12/lets-encrypt-on-centos5/

3.https://github.com/Neilpang/acme.sh/wiki/%E8%AF%B4%E6%98%8E


—————— 步骤 ——————

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


—————— 生成证书 ——————

acme.sh  --issue  -d zephyrxt.com  --webroot  /home/wwwroot/zephyrxt.com


—————— 配置网站 ——————

在zephyrxt.com.conf中指定lets证书位置,并重启nginx

ssl_certificate /root/.acme.sh/zephyrxt.com/fullchain.cer;
ssl_certificate_key /root/.acme.sh/zephyrxt.com/zephyrxt.com.key;


其他:

https://github.com/Neilpang/acme.sh/issues/157
acme申请 Let’s Encrypt 泛域名 SSL 证书
https://bbs.zephyrxt.com/thread-18846-1-1.html

收到1条评论
avatar
ZephyrXT 2020-01-29 13:58
yum update --noplugins --skip-broken
yum clean all
yum install crontabs
yum install openssl
curl https://get.acme.sh | sh
acme.sh
export CF_Key="XXXX"
export CF_Email="zXXXgmail.com"
acme.sh --issue --dns dns_cf -d zephyrimg.com -d *.zephyrimg.com
crontab -l