安装acme
1 | curl https://get.acme.sh | sh -s [email protected] |
使用阿里云dns认证方式
文档: https://github.com/acmesh-official/acme.sh/wiki/dnsapi
1 | export Ali_Key="xxxxxxxxxxxxxxxx" |
安装密钥
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" |