conf/openssl-bsd.conf
author Tomas Zeman <tzeman@volny.cz>
Fri, 30 Aug 2013 13:16:15 +0200
changeset 29 3f6120005a40
parent 28 conf/openssl.conf@7cccb5cf738b
permissions -rw-r--r--
conf/openssl-bsd.conf: Use BSD variant of date(1)

# Certificate monitoring

# Number of seconds till certificate expires
# Parameters: $1 - path to cert file
UserParameter=cert.x509.expire[*],openssl x509 -in $1 -enddate|grep notAfter|awk -F= '{print $$2}'|while read l; do t=`date -j -f "%b %e %T %Y %Z" "$l" +%s`; n=`date +%s`; echo `expr $t - $n`; done