Skip to content

clavier-souris/letsencrypt-watchdog

 
 

Repository files navigation

Let's Encrypt Watchdog

Overview

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.

Current State

version 0.0.1 first functionality is fully tested on debian like system with Let's Encrypt Public Beta

Prerequisites

openssl

php > 5.6.x (with enable shell_exec function in php.ini)

How Install Let's Watchdog

  • 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

Example Usage

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

Using via crontab

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

About

Let's Encrypt Watchdog automatically renew your standalone certificates 24h before expire.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%