gpt4 book ai didi

apache - Certbot - 更新您的客户端软件以继续使用 Let's Encrypt - 在 Ubuntu 14.04 中将 ACME v1 更新到 v2

转载 作者:行者123 更新时间:2023-12-01 17:40:45 25 4
gpt4 key购买 nike

我收到了一封来自noreply@letsencrypt.org 的电子邮件,主题为“更新您的客户端软件以继续使用 Let's Encrypt”

我在托管 https 站点的服务器中使用 Ubuntu 14.04.05 LTS,Certbot 是 0.22.2+1+ubuntu

这是我的存储库中的最新版本。

我尝试按照此文档 https://certbot.eff.org/docs/using.html?highlight=acmev2#changing-the-acme-server 续订强制使用 ACME v2 服务器的域将“--server https://acme-v02.api.letsencrypt.org/directory”添加到更新命令中,但它不起作用。

现在我陷入困境并请求帮助。

感谢您的阅读和帮助。

最佳答案

更新:

解决方案1:

您可以尝试这 5 个步骤。看看这是否有效:

sudo apt update
sudo apt install --only-upgrade certbot
sudo certbot update_account
certbot renew --dry-run

我是从 digital ocean 社区了解到它们的: https://www.digitalocean.com/community/questions/let-s-encrypt-acmev1-protocol-you-should-upgrade-to-an-acmev2

解决方案2:

正如您已经提到的 ppa:certbot/certbot 没有最新版本的 certbot。

certbot官网提供了所有与certbot相关的说明:

https://certbot.eff.org/all-instructions/

您必须选择“Nginx on Ubuntu (other)”,这将引导您进入此页面:

https://certbot.eff.org/lets-encrypt/ubuntuother-nginx.html

此页面告诉您执行这些语句:

第 1 步:安装 certbot-auto:

wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto

第2步:配置nginx:

sudo /usr/local/bin/certbot-auto --nginx

此步骤将询问您:

1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)

在这里您可以输入“1”

然后它会问:

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for

您可以选择您的要求。

第 3 步:设置 cron 作业以自动续订:

echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && /usr/local/bin/certbot-auto renew" | sudo tee -a /etc/crontab > /dev/null

免责声明:上述方法对我有用。 YMMV!

请在评论中提及此解决方案是否适合您。如果有更好的情况也请告诉我。享受吧!

关于apache - Certbot - 更新您的客户端软件以继续使用 Let's Encrypt - 在 Ubuntu 14.04 中将 ACME v1 更新到 v2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59824362/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com