免费ssl证书,使用acme.sh,泛解析,阿里dns自动续期

- 阿里云注册用户,添加dns可编辑权限

- curl https://get.acme.sh | sh -s email=xxxx@example.com

 - 注意大小写
export Ali_Key="<key>"
export Ali_Secret="<secret>"
 -  执行阿里自动dns
 
cd ~/.acme.sh/
./acme.sh --issue --dns dns_ali -d example.com -d *.example.com

  

 - 如果报错:get authz objec with invalid status, please try again later
 
 改为letsencrypt
./acme.sh --set-default-ca --server letsencrypt

 

执行完成后相关文件都在:~/.acme.sh/ 目录

 

参考

https://github.com/acmesh-official/acme.sh

https://github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_ali

posted @ 2024-03-04 17:16  winstonsias  阅读(145)  评论(0编辑  收藏  举报