首页 » 编程世界 » 服务器编程 » 正文

Let’s Encrypt申请泛域名证书

https://blog.csdn.net/u013378306/article/details/80030405

https://blog.csdn.net/dancen/article/details/81311688

参考自动化脚本:

https://www.jianshu.com/p/1a792f87b6fe  (https://github.com/Neilpang/get.acme.sh)

单域名:

./letsencrypt-auto certonly –standalone –email xx@126.com -d *.xx.com

泛域名

./letsencrypt-auto certonly –email xx@126.com -d *.xx.com –manual –preferred-challenges dns –server https://acme-v02.api.letsencrypt.org/directory

由于泛域名需要使用 manual  模式去安装,所以校验域名的时候,需要向dns添加一条txt记录,方能继续。这样导致后面域名续期的时候,也需要通过脚本的形式,向dns添加txt记录,才能续期证书,这样就需要脚本执行了。

定时器执行:

crontab  -e

* 4 * */1 * /root/.acme.sh/renew.sh >> /root/.acme.sh/log.log



发表评论

*

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据