【问题标题】:How to update Certbot version?如何更新 Certbot 版本?
【发布时间】:2018-08-06 09:58:31
【问题描述】:

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

关于如何更新的任何建议?

【问题讨论】:

    标签: ubuntu debian certbot


    【解决方案1】:

    不知道我是怎么错过的。来自安装文档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
    

    【讨论】:

    【解决方案2】:

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

    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

    【讨论】:

      【解决方案3】:
      sudo apt update
      sudo apt install --only-upgrade certbot
      

      在 ubuntu 上用 nginx 尝试过,对我来说没有问题。

      【讨论】:

      • 请编辑您的答案以提供解释。您肯定知道,这在 Stack Overflow 上总是很有用,但在这里特别很有用,那里有四个现有答案,包括一个接受了 40 多个赞成的答案。是什么让你的答案与众不同?在什么情况下,您的答案会优于现有方法?请记住,每个新答案都会添加另一个帖子,有此问题的人需要评估:让他们更容易理解差异,以及为什么他们应该考虑您的代码而不是其他代码。
      • 我还应该注意:这最终进入了 低质量帖子 队列等待审核,并且至少有其他人投票删除了它。我投票维持它,因为它真诚地努力回答这个问题。但添加解释也有助于确保比我更严格的审稿人不会投票删除它。
      【解决方案4】:

      一点背景from Let's Encrypt

      很遗憾,由于安全问题,Let's Encrypt 已停止提供 Certbot 的 Apache 和 Nginx 插件用来证明您控制域的机制

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

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

      【讨论】:

      • 但是 nginx 解决方案呢?这仅适用于 Apache:/
      【解决方案5】:

      在 debian Stretch 上,只需使用:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-02-23
        • 1970-01-01
        • 1970-01-01
        • 2015-03-16
        • 2021-10-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多