更新Let's Encrypt SSL证书提示certbot-auto无法升级怎么办

我们知道 Let's Encrypt SSL 证书只免费3个月,到期需要重新更新续签。今天在更新时,一如既往的敲更新命令certbot-auto renew,但确实提示如下错误:

Upgrading certbot-auto 0.38.0 to 0.39.0...

Couldn't download https://raw.githubusercontent.com/certbot/certbot/v0.39.0/letsencrypt-auto-source/letsencrypt-auto.

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

解决方案也非常简单:

如果希望将其锁定到特定版本并且不接收自动更新,只需在命令后加 --no-self-upgrade 即可。即cd /var/ssl/letsencrypt/跳转到对应的目录后,再使用如下命令:

certbot-auto renew --no-self-upgrade

 

cd /var/ssl/letsencrypt/

./certbot-auto renew --no-self-upgrade

你可能感兴趣的:(certbot-auto,https)