certbot-auto报错,无法更新证书解决

随笔 0 868
邮箱用户_8st46
邮箱用户_8st46 2021年6月30日 00:10 发表
摘要:在使用Let’s Encrypt 的免费证书后,需要每三个月更新一次证书,到期需要重新更新续签。今天发现网站证书失效,查看续签日志提示如下错误

在使用Let’s Encrypt 的免费证书后,需要每三个月更新一次证书,到期需要重新更新续签。今天发现网站证书失效,查看续签日志提示如下错误

Upgrading certbot-auto 1.10.1 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>
错误不能从网址https://raw.githubusercontent.com获取信息

原因是:certbot-auto将始终尝试从最新版本中获取自身的最新版本

解决办法:将其版本锁定,不在获取新的更新信息就可以了
在更新命令后加 --no-self-upgrade
示例:./certbot-auto certonly --standalon --email 10363@qq.com -d www.zszhan.cn --no-self-upgrade


也可以在hosts文件添加解析

cat >> /etc/hosts <<-EOF
199.232.4.133 raw.githubusercontent.com
EOF
再次手动更新,问题解决!

点赞 0 收藏(0)    分享
相关标签: certbot-auto
问题没解决?让chatGPT帮你作答 智能助手
0 个评论
  • 消灭零评论