Let's Encrypt 泛域名 證書申請 及自動更新git
關鍵字:SSL證書、HTTPSgithub
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto
複製代碼
./certbot-auto certonly -d *.你的域名 --manual --preferred-challenges dns
複製代碼
./certbot-auto certonly -d *.butukeji.com --manual --preferred-challenges dns
複製代碼
輸入Y 贊成便可bash
添加完成好稍等10秒左右 Enter, 就能夠看到自動申請成功的證書路徑和私鑰路徑: 服務器
我看網上好多說
./certbot-auto renew
, 這種反正我是沒成功過。 DNS 方式renew 實際也須要去從新添加驗證DNS 的TXT紀錄,因此直接 renew會失敗。阿里雲
./auto-renew.sh
複製代碼