关于 lets encrypt 自动更新

2018-03-27 15:59:48 +08:00
 Akill47
执行:
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


有没有哪位大佬知道怎么解决, 感谢
4337 次点击
所在节点    Linux
7 条回复
Showfom
2018-03-27 16:02:09 +08:00
太早了吧续了吧,晚几天再试试
Akill47
2018-03-27 16:10:47 +08:00
@Showfom 还有 12 天就过期了
huaxing0211
2018-03-27 22:01:21 +08:00
acme.sh ……
ponote
2018-03-27 22:24:35 +08:00
参考: 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
----------------------------
完成
jackietsui72
2018-03-28 01:58:28 +08:00
certbot renew --dry-run 去掉--dry-run 参数吧,看返回信息是没报错的。
Akill47
2018-03-28 10:05:52 +08:00
@jackietsui72 No renewals were attempted.
kaneg
2018-03-29 13:43:57 +08:00
先把 log 文件的内容贴上来: /var/log/letsencrypt/letsencrypt.log

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/441836

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX