From 8963916b3b8065fba2af2a8f9329b3e9fddf8d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=A4hn?= Date: Wed, 12 Aug 2015 18:28:50 +0200 Subject: [PATCH] Fix certificate expiration check --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index c8ffdcf..577da3d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1855,7 +1855,7 @@ run_server_defaults() { SECS2WARN=$((24 * 60 * 60 * $DAYS2WARN2)) # low threshold first expire=$($OPENSSL x509 -in $HOSTCERT -checkend $SECS2WARN) if echo "$expire" | grep -qw not; then - SECS2WARN=$((24 * 60 * 60 * $DAYS2WARN2)) + SECS2WARN=$((24 * 60 * 60 * $DAYS2WARN1)) expire=$($OPENSSL x509 -in $HOSTCERT -checkend $SECS2WARN) if echo "$expire" | grep -qw not; then pr_litegreen ">= $DAYS2WARN1 days"