| changeset 28 | 7cccb5cf738b |
| child 34 | b685225d4966 |
| 27:e8cb759c60b4 | 28:7cccb5cf738b |
|---|---|
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 -d"$l" +%s`; n=`date +%s`; echo `expr $t - $n`; done |
|
6 |