海天无影Blog

解决Certbot更新证书时Couldn‘t download https://raw.githubusercontent.com的方法

/ 1848阅 / 0评 / 1

certbot使用的免费ssl证书需要每三个月更新一次,有时候会碰到提示Couldn‘t download https://raw.githubusercontent.com 的错误,其实就是certbot自己升级的时候无法访问到源,有两种方法可以解决:

1、修改hosts

cat >> /etc/hosts <<-EOF

199.232.4.133 raw.githubusercontent.com

EOF

 

2、添加命令--no-self-upgrade

在更新证书代码后添加命令--no-self-upgrade执行即可。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注