blob: 686727e324db32356d41e38040c0aaefa8ab66e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- ./bin/ssl-cert/check-cert.sh.in.orig Sat Dec 30 16:41:04 2006
+++ ./bin/ssl-cert/check-cert.sh.in Sat Dec 30 16:41:37 2006
@@ -216,7 +216,7 @@
now=`date +%s`
if [ $? -eq 0 ] # date command support epoch format
then
- exp=`date --date="${cert_expires}" +%s`
+ exp=`date -j -f "%b %d %T %Y %Z" "${cert_expires}" +%s`
remaining=$(($exp - $now))
if [ ${remaining} -le 0 ] # cert expired
|