如何更新 Certbot 版本?

How to update Certbot version?

我是 运行 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.

关于如何更新有什么建议吗?

不知道我是怎么错过的。来自安装文档 https://certbot.eff.org/docs/install.html#certbot-auto

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

一些背景知识from Let's Encrypt

Unfortunately, Let's Encrypt has stopped offering the mechanism that Certbot's Apache and Nginx plugins use to prove you control a domain due to a security issue

要在更新前在现有 L.E 安装上解决此问题,如果您使用 Debian/Ubuntu,请遵循 this solution

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

在 debian Stretch 上,只需使用:

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

您可以检查您的软件版本,但这有效:

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

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

在 ubuntu 上用 nginx 试了一下,对我来说没有问题。