広告

AWS ubuntu

certbot renew cron

certbotをアップデートしたらcronエントリがインストールされたと思う。

自動的に証明書がrenewされるみたい。

/etc/cron.d/certbot

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

Hits: 18

広告

  • この記事を書いた人

higa

システムエンジニアをやっています。 Linux,macOS好き。おもにシステム管理たまに豆柴こてつの話。 最近はスマートホームを推進中。

-AWS, ubuntu