- 为阿里云os添加源
2. yum install epel-release
- 升级:
yum update
- 安装certbot
yum install certbot
- 准备工作:
- 更新pip
pip2.7 install --upgrade pip
- 更新其他组件
pip2.7 install requests urllib3 --upgrade
- 安装requests 2.6
pip install --upgrade --force-reinstall 'requests==2.6.0'
- 测试安装结果:
certbot --version
7.签发证书
certbot -d aaa.pub -d *.aaa.pub --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory certonly --agree-tos
- 后续更新域名:
certbot-auto renew