conf/openssl.conf
author Tomas Zeman <tzeman@volny.cz>
Fri, 27 Dec 2013 10:18:15 +0100
changeset 31 50abf2d64158
parent 28 7cccb5cf738b
child 34 b685225d4966
permissions -rw-r--r--
conf/pkg-audit.conf: pkg audit counterpart to portaudit

# 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 -d"$l" +%s`; n=`date +%s`; echo `expr $t - $n`; done