【注:本人使用的環(huán)境是Linux的Cent OS 7.9版本】
1. 安裝python3,pip3
方法如下:https://blog.csdn.net/laichilizi/article/details/116271009
2. pip3 install certbot? 使用pip安裝certbot工具
方法如下:https://blog.csdn.net/weixin_51080564/article/details/123584119
3. git clone https://github.com/ywdblog/certbot-letencrypt-wildcardcertificates-alydns-au.git? 下載dns驗(yàn)證的腳本
4. 阿里云上創(chuàng)建一個(gè)RAM子賬號(hào)并分配access_key和access_key_secret,并分配DNS解析的權(quán)限

5. 將access_key和access_key_secret填入到第三步下載的au.sh腳本中
6. certbot certonly? -d *.example.com(域名)--manual --preferred-challenges dns --manual-auth-hook "/srv/certbot-letencrypt-wildcardcertificates-alydns-au/au.sh python aly add"? 使用certbot命令即可生成證書
7.ssl證書:/etc/letsencrypt/archive