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

问题描述 投票:3回答:1

我收到了来自[email protected]的电子邮件,主题为“更新客户端软件以继续使用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”,但此操作无效。

现在我被困住了,需要帮助。

感谢您的阅读和帮助。

apache ubuntu certbot acme.sh
1个回答
0
投票

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

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

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

您必须选择“ Ubuntu(其他)上的Nginx”,这将带您到此页面:

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!

© www.soinside.com 2019 - 2024. All rights reserved.