V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Akill47
V2EX  ›  Linux

关于 lets encrypt 自动更新

  •  1
     
  •   Akill47 · 2018-03-27 15:59:48 +08:00 · 4315 次点击
    这是一个创建于 2212 天前的主题,其中的信息可能已经有所发展或是发生改变。
    执行:
    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


    有没有哪位大佬知道怎么解决, 感谢
    7 条回复    2018-03-29 13:43:57 +08:00
    Showfom
        1
    Showfom  
       2018-03-27 16:02:09 +08:00
    太早了吧续了吧,晚几天再试试
    Akill47
        2
    Akill47  
    OP
       2018-03-27 16:10:47 +08:00
    @Showfom 还有 12 天就过期了
    huaxing0211
        3
    huaxing0211  
       2018-03-27 22:01:21 +08:00
    acme.sh ……
    ponote
        4
    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
        5
    jackietsui72  
       2018-03-28 01:58:28 +08:00
    certbot renew --dry-run 去掉--dry-run 参数吧,看返回信息是没报错的。
    Akill47
        6
    Akill47  
    OP
       2018-03-28 10:05:52 +08:00
    @jackietsui72 No renewals were attempted.
    kaneg
        7
    kaneg  
       2018-03-29 13:43:57 +08:00
    先把 log 文件的内容贴上来: /var/log/letsencrypt/letsencrypt.log
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3368 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:18 · PVG 20:18 · LAX 05:18 · JFK 08:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.