Let's Encrypt Watchdog is simply a guard for your domain certificate. If your certificate will expire within 24 hours, this script will renew it.
version 0.0.1 first functionality is fully tested on debian like system with Let's Encrypt Public Beta
openssl
php > 5.6.x (with enable shell_exec function in php.ini)
- Connet via SSH to your web server
cd /opt/
git clone https://github.com/heximcz/letsencrypt-watchdog.git
cd /opt/letsencrypt-watchdog/
cp ./config.default.yml ./config.yml
mkdir -p /var/log/le-watchdog/
- change your preferences in the config.yml file
print help:
php ./lets-watchdog.php
or
php ./lets-watchdog.php wd:simple -h
check all and renew certificate who will be expired during 24 hours:
php ./lets-watchdog.php wd:simple
add this line to your /etc/crontab:
0 0 * * * root /usr/local/sbin/php /opt/letsencrypt-watchdog/lets-watchdog.php wd:simple >> /var/log/le-watchdog/lewatchdog.log