Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
Akill47
V2EX  ›  Linux

关于 lets encrypt 自动更新

  •  1
     
  •   Akill47 · Mar 27, 2018 · 5576 views
    This topic created in 3148 days ago, the information mentioned may be changed or developed.
    执行:
    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 replies  •  2018-03-29 13:43:57 +08:00
    Showfom
    Showfom
    PRO
    Mar 27, 2018
    1
    太早了吧续了吧,晚几天再试试
    Akill47
    Akill47
    OP
    Mar 27, 2018
    2
    @Showfom 还有 12 天就过期了
    handwork
    handwork
    Mar 27, 2018
    3
    换 acme.sh ……
    ponote
    ponote
    Mar 27, 2018
    4
    参考: 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
    jackietsui72
    Mar 28, 2018
    5
    certbot renew --dry-run 去掉--dry-run 参数吧,看返回信息是没报错的。
    Akill47
    Akill47
    OP
    Mar 28, 2018
    6
    @jackietsui72 No renewals were attempted.
    kaneg
    kaneg
    Mar 29, 2018
    7
    先把 log 文件的内容贴上来: /var/log/letsencrypt/letsencrypt.log
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   497 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 20:34 · PVG 04:34 · LAX 12:34 · JFK 15:34
    ♥ Do have faith in what you're doing.