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.
Release 0.0.3
new features: add new option --time, (renew certificate before expiration (in seconds), min=86400)
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
Limits in Let's Encrypt public beta you can see here: