Certbot:打包的自动更新 cron 作业在哪里?
Certbot: where is packaged automatic renewal cron job?
根据 Certbot documentation for Ubuntu 16.04 和其他发行版,该软件包应该安装了一个自动更新证书的 cron 作业:
The Certbot packages on your system come with a cron job that will
renew your certificates automatically before they expire. Since Let's
Encrypt certificates last for 90 days, it's highly advisable to take
advantage of this feature.
但是我找不到关于这个主题的任何相关文档,并且在遵循同一页面上的 certbot 安装说明(版本 0.19.0)后,我找不到在 crontab 上配置的任何 cron 作业。这个功能真的存在吗?如果有,如何找到并配置?
注意:我在尝试使用挂钩配置自动续订时找到了这篇文档。我可以手动配置 cron 作业,但使用内置的自动续订功能似乎更合适。
简而言之,试试这个:
https://certbot.eff.org/docs/using.html#webroot
长:
您为 certbot 设置 ssl 选择了一个奇怪的时机。
遗憾的是存在漏洞问题。对于他们旧的更新方法是。
所以我在这里打开了这个问题,它包含一些您应该在其中寻找答案的信息
在 Ubuntu 16.04(以及其他)中,自动续订由 systemd 而不是 cron 处理:
foo@localhost:~# systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTI
Fri 2018-05-25 19:05:59 UTC 1min 25s left n/a n/a systemd-tmpfiles-clean.timer syst
Sat 2018-05-26 00:56:58 UTC 5h 52min left Fri 2018-05-25 12:13:30 UTC 6h ago certbot.timer cert
Sat 2018-05-26 06:17:45 UTC 11h left Fri 2018-05-25 06:42:23 UTC 12h ago apt-daily-upgrade.timer apt-
Sat 2018-05-26 12:51:39 UTC 17h left Fri 2018-05-25 18:51:08 UTC 13min ago apt-daily.timer apt-
定时器默认每天触发两次。
foo@localhost:~# cat /lib/systemd/system/certbot.timer
[Unit]
Description=Run certbot twice daily
[Timer]
OnCalendar=*-*-* 00,12:00:00
RandomizedDelaySec=3600
Persistent=true
[Install]
WantedBy=timers.target
根据 Certbot documentation for Ubuntu 16.04 和其他发行版,该软件包应该安装了一个自动更新证书的 cron 作业:
The Certbot packages on your system come with a cron job that will renew your certificates automatically before they expire. Since Let's Encrypt certificates last for 90 days, it's highly advisable to take advantage of this feature.
但是我找不到关于这个主题的任何相关文档,并且在遵循同一页面上的 certbot 安装说明(版本 0.19.0)后,我找不到在 crontab 上配置的任何 cron 作业。这个功能真的存在吗?如果有,如何找到并配置?
注意:我在尝试使用挂钩配置自动续订时找到了这篇文档。我可以手动配置 cron 作业,但使用内置的自动续订功能似乎更合适。
简而言之,试试这个: https://certbot.eff.org/docs/using.html#webroot
长:
您为 certbot 设置 ssl 选择了一个奇怪的时机。
遗憾的是存在漏洞问题。对于他们旧的更新方法是。
所以我在这里打开了这个问题,它包含一些您应该在其中寻找答案的信息
在 Ubuntu 16.04(以及其他)中,自动续订由 systemd 而不是 cron 处理:
foo@localhost:~# systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTI
Fri 2018-05-25 19:05:59 UTC 1min 25s left n/a n/a systemd-tmpfiles-clean.timer syst
Sat 2018-05-26 00:56:58 UTC 5h 52min left Fri 2018-05-25 12:13:30 UTC 6h ago certbot.timer cert
Sat 2018-05-26 06:17:45 UTC 11h left Fri 2018-05-25 06:42:23 UTC 12h ago apt-daily-upgrade.timer apt-
Sat 2018-05-26 12:51:39 UTC 17h left Fri 2018-05-25 18:51:08 UTC 13min ago apt-daily.timer apt-
定时器默认每天触发两次。
foo@localhost:~# cat /lib/systemd/system/certbot.timer
[Unit]
Description=Run certbot twice daily
[Timer]
OnCalendar=*-*-* 00,12:00:00
RandomizedDelaySec=3600
Persistent=true
[Install]
WantedBy=timers.target