1.获取 dnspod秘钥 以腾讯云为例
https://console.dnspod.cn/account/token/apikey
2.安装
curl https://get.acme.sh | sh -s email=my@example.com //使用自己的邮箱
#国内 https://gitee.com/neilpang/acme.sh
git clone https://gitee.com/neilpang/acme.sh.git
cd acme.sh
./acme.sh --install -m my@example.com
3.修改account.cnf 位置/root/.acme.sh
export DP_Id="123xxx"
export DP_Key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
文件中添加上述内容
4.生成证书
./acme.sh --issue --server letsencrypt --dns dns_dp -d example.com -d www.example.com