conf/openssl.conf
author Tomas Zeman <tzeman@volny.cz>
Fri, 30 Aug 2013 13:16:15 +0200
changeset 29 3f6120005a40
parent 28 7cccb5cf738b
child 34 b685225d4966
permissions -rw-r--r--
conf/openssl-bsd.conf: Use BSD variant of date(1)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
7cccb5cf738b conf/openssl.conf: certificate expiration checks
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     1
# Certificate monitoring
7cccb5cf738b conf/openssl.conf: certificate expiration checks
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     2
7cccb5cf738b conf/openssl.conf: certificate expiration checks
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     3
# Number of seconds till certificate expires
7cccb5cf738b conf/openssl.conf: certificate expiration checks
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     4
# Parameters: $1 - path to cert file
7cccb5cf738b conf/openssl.conf: certificate expiration checks
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     5
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
7cccb5cf738b conf/openssl.conf: certificate expiration checks
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     6