Skip to content

Instantly share code, notes, and snippets.

@jsha
Last active January 16, 2017 18:14
Show Gist options
  • Save jsha/8bcbdc53620308968a43738e62bd7dd8 to your computer and use it in GitHub Desktop.
Save jsha/8bcbdc53620308968a43738e62bd7dd8 to your computer and use it in GitHub Desktop.
letsencrypt logs from certbot on jessie
# ls /var/log/letsencrypt/ -ltr
total 104
-rw-r--r-- 1 root root 0 Jan 14 00:51 letsencrypt.log.13
-rw-r--r-- 1 root root 2322 Jan 14 00:51 letsencrypt.log.12
-rw-r--r-- 1 root root 756 Jan 14 00:51 letsencrypt.log.11
-rw-r--r-- 1 root root 779 Jan 14 00:52 letsencrypt.log.10
-rw-r--r-- 1 root root 873 Jan 14 00:52 letsencrypt.log.9
-rw-r--r-- 1 root root 795 Jan 14 00:52 letsencrypt.log.8
-rw-r--r-- 1 root root 2345 Jan 14 00:52 letsencrypt.log.7
-rw-r--r-- 1 root root 2345 Jan 14 00:52 letsencrypt.log.6
-rw-r--r-- 1 root root 53603 Jan 14 00:53 letsencrypt.log.5
-rw-r--r-- 1 root root 1458 Jan 14 12:00 letsencrypt.log.4
-rw-r--r-- 1 root root 1457 Jan 15 00:00 letsencrypt.log.3
-rw-r--r-- 1 root root 1458 Jan 15 12:00 letsencrypt.log.2
-rw-r--r-- 1 root root 1457 Jan 16 00:00 letsencrypt.log.1
-rw-r--r-- 1 root root 1458 Jan 16 12:00 letsencrypt.log
# cat /etc/cron.d/certbot
# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc. Renewal will only occur if expiration
# is within 30 days.
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(3600))' && certbot -q renew
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment