如何更新Certbot版本?

38

我正在运行 certbot --apache,但是出现了以下错误:

Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
Client with the currently selected authenticator does not support any 
combination of challenges that will satisfy the CA.

安装的版本为Debian 8.10上的0.10.2
我想升级到0.21.0,这应该可以解决问题。详情请见https://community.letsencrypt.org/t/certbot-0-21-0-release/50725
但是我尝试使用apt-get update/upgrade命令进行升级时出现以下错误:
certbot is already the newest version.
certbot set to manually installed.

有关如何更新的任何建议吗?

6个回答

43

我不确定为什么错过了这个。来自安装文档

user@webserver:~$ wget https://dl.eff.org/certbot-auto
user@webserver:~$ chmod a+x ./certbot-auto
user@webserver:~$ ./certbot-auto --help

只是一条注释,因为我以root身份运行时出现了错误(我知道我不应该这样做)。 - Cleber Reizen
3
certbot-auto不再受支持。 - Mohammad Rafigh
4
此回答已不再正确,请查看更新版本:https://certbot.eff.org/instructions。例如(针对Ubuntu 20.04):https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx。 - TheSlimyDog
1
无法在Debian Strech上运行,找到了解决方案:https://discuss.erpnext.com/t/solution-your-system-is-not-supported-by-certbot-auto-anymore/69488 - Ben Asmussen

8

您可以检查您的软件版本,但以下方法更加简便:

sudo apt-get update -y
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update -y
sudo apt-get install certbot python-certbot-apache
certbot --version

https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache


7
sudo apt update
sudo apt install --only-upgrade certbot

我在Ubuntu上使用nginx尝试过,没有任何问题。


4
请编辑您的答案以提供解释。如您所知,在Stack Overflow上始终提供解释是非常有用的,但在这里尤为重要,因为已经有四个现有的答案,其中包括一个被接受的回答,获得了40多个赞。你的回答有何不同之处?在什么情况下会优先选择您的答案而不是现有的方法?请记住,每一个新答案都会让这个问题的人们需要评估另一个帖子:让他们更容易理解差异,并为什么应该考虑使用您的代码而不是其他人的代码。 - Jeremy Caney
3
我需要指出的是:这篇文章被归入“低质量帖子”队列进行审核,至少有一位其他人已经投票删除它。我投票维持它,因为它在诚信地回答问题方面做了努力。但补充解释也将有助于确保比我更严格的评论员不会投票删除它。 - Jeremy Caney

2

一些背景信息来自Let's Encrypt

不幸的是,由于安全问题,Let's Encrypt已经停止提供Certbot的Apache和Nginx插件用于证明您拥有域名的机制。

如果您使用的是Debian / Ubuntu,请在更新之前遵循此解决方案,以便在现有的L.E安装中绕过此问题:

certbot --authenticator standalone --installer apache -d <yourdomain(s)> --pre-hook "apache2ctl stop" --post-hook "apache2ctl start

2
但是Nginx解决方案呢?这只适用于Apache :/ - vsync

2

在Debian Stretch上,只需使用以下命令:

apt-get install python-certbot-apache -t stretch-backports

2

适用于Debian 11

问题描述

在Debian 11中,您的CertBot版本为:https://packages.debian.org/bullseye/certbot

(on 28th August 2022 = 1.12.0)

最新版本: https://github.com/certbot/certbot/releases
(on 28th August 2022 = 1.29.0)

在Debian 11中,CertBot已经过时。第一步:如果已安装,请将其卸载:

sudo apt remove certbot -y

CertBot安装

  1. 安装Snapd管理器:sudo apt install snapd -y
  2. 安装Snap核心和刷新:sudo snap install core; sudo snap refresh core
  3. 安装CertBot:sudo snap install --classic certbot
  4. 在Debian中设置链接:sudo ln -s /snap/bin/certbot /usr/bin/certbot

检查已安装的CertBot版本

1.- 查看版本:sudo certbot --version 输出:certbot 1.29.0


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接