letsencrypt无法正常更新证书的解决方法
由于从国内部分地区无法正常访问raw.githubusercontent.com域名,导致certbot-auto程序更新失败,无法完成域名证书更新。报如下错误:
/data/letsencrypt/letsencrypt-auto renew /data/letsencrypt/letsencrypt-auto has insecure permissions! To learn how to fix them, visit https://community.letsencrypt.org/t/certbot-auto-deployment-best-practices/91979/ Upgrading certbot-auto 1.9.0 to 1.11.0... Couldn't download https://raw.githubusercontent.com/certbot/certbot/v1.11.0/letsencrypt-auto-source/letsencrypt-auto. <urlopen error [Errno 111] Connection refused>
现给出两种解决方法:
不更新certbot-auto程序,直接更新域名证书。
在命令行后面增加 --no-self-upgrade,例如:
/data/letsencrypt/letsencrypt-auto renew --no-self-upgrade
修改hosts文件,完成certbot-auto程序更新。
编辑hosts文件:
vim /etc/hosts
增加如下一行:
199.232.4.133 raw.githubusercontent.com
保存退出
:wq
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/314.html