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.
 

Let‘s Encrypt证书自动更新报错_第1张图片


好吧,到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/certbotLet‘s Encrypt证书自动更新报错_第2张图片

下载后解压,将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证书自动更新报错_第3张图片

你可能感兴趣的:(Linux,CentOS,Nginx,SSL证书,Certbot,Lets,Encrypt)