技术解析

关于 lets encrypt 自动更新
0
2021-06-24 18:52:01
idczone
执行:
certbot renew --dry-run

出现以下情况:
Saving debug log to /var/log/letsencrypt/letsencrypt.log

-------------------------------------------------------------------------------
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)

No renewals were attempted.
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)

letsencrypt.log 内容如下:
2018-03-27 07:37:39,834:DEBUG:certbot.main:certbot version: 0.22.0
2018-03-27 07:37:39,834:DEBUG:certbot.main:Arguments: ['--dry-run']
2018-03-27 07:37:39,834:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-03-27 07:37:39,847:DEBUG:certbot.log:Root logging level set at 20
2018-03-27 07:37:39,847:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-03-27 07:37:39,848:DEBUG:certbot.renewal:no renewal failures


有没有哪位大佬知道怎么解决, 感谢
太早了吧续了吧,晚几天再试试

还有 12 天就过期了

换 acme.sh ……

参考: https://www.ponote.com/article/56903
lets encrypt 自动续期:
先查看 cron 的状态:
----------------------------
service crond status
----------------------------
如果未安装,请先安装 cron,如果已安装
----------------------------
crontab -e
----------------------------
然后直接“:wq ”保存退出,(你也可以直接在 VI 界面编辑内容)
然后 ftp 进入 /var/spool/cron,大概 root 文件,粘贴下面内容,保存,重启服务:
----------------------------
10 1 1 * * /etc/init.d/nginx stop
11 1 1 * * /opt/letsencrypt/letsencrypt-auto certonly --quiet --standalone --renew-by-default -d www.example.com -d example.com >> /var/log/letsencrypt/letsencrypt-auto-update.log
18 1 1 * * /etc/init.d/nginx restart
----------------------------
完成

certbot renew --dry-run 去掉--dry-run 参数吧,看返回信息是没报错的。

No renewals were attempted.

先把 log 文件的内容贴上来: /var/log/letsencrypt/letsencrypt.log

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服