| changeset 29 | 3f6120005a40 |
| parent 28 | 7cccb5cf738b |
| 28:7cccb5cf738b | 29:3f6120005a40 |
|---|---|
1 # Certificate monitoring |
|
2 |
|
3 # Number of seconds till certificate expires |
|
4 # Parameters: $1 - path to cert file |
|
5 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 |
|
6 |