本文主要是介绍Let‘s Encrypt证书自动更新报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
运行环境:CentOS7.7
HTTPS证书自动续期定时任务报错,查看发现certbot-auto无法下载
wget -P /opt/letsencrypt/ https://dl.eff.org/certbot-auto
错误信息如下:
-- https://dl.eff.org/certbot-auto
Resolving dl.eff.org (dl.eff.org)... 151.101.72.201, 2a04:4e42:11::201
Connecting to dl.eff.org (dl.eff.org)|151.101.72.201|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
ERROR 404: Not Found.
好吧,到github下载certbot最新稳定版本
GitHub - certbot/certbot: Certbot is EFF's tool to obtain certs from Let's Encrypt and (optionally) auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.https://github.com/certbot/certbot
下载后解压,将letsencrypt-auto-source目录下的letsencrypt-auto,复制到原来目录,如下:
# 解压到指定文件夹
tar -zxvf /opt/certbot-1.19.0.tar.gz -C /opt/certbot-1.19.0# 备份
mv /opt/letsencrypt/certbot-auto /opt/letsencrypt/certbot-auto.bak# 复制到目标文件夹
cp /opt/certbot-1.19.0/letsencrypt-auto-source/letsencrypt-auto /opt/letsencrypt/certbot-auto# 授予certbot-auto执行权
chmod u+x /opt/letsencrypt/certbot-auto# 接下来,手工执行一次定时任务脚本……
剩下的按原来的脚本升级即可,祝你好运^-^
这篇关于Let‘s Encrypt证书自动更新报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!