0%

acme使用AliyunDNS验证

安装acme

1
curl https://get.acme.sh | sh -s [email protected]

使用阿里云dns认证方式

文档: https://github.com/acmesh-official/acme.sh/wiki/dnsapi

1
2
3
export Ali_Key="xxxxxxxxxxxxxxxx"
export Ali_Secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
acme.sh --issue --dns dns_ali -d your.domain.com

安装密钥

1
acme.sh --install-cert -d your.domain.com --key-file /etc/nginx/your.domain.com.key --fullchain-file /etc/nginx/your.domain.com.pem --reloadcmd "sudo systemctl restart nginx"