Skip to content

Commit d531981

Browse files
authored
Merge pull request #1756 from drwetter/fix_1755
Fix issue with host certificate expiration
2 parents 4af9016 + 45b5d7a commit d531981

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9046,9 +9046,9 @@ certificate_info() {
90469046
set_grade_cap "T" "Certificate expired"
90479047
else
90489048
# low threshold first
9049-
if ! [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn2)) 2>>$ERRFILE <<< "$cert")" =~ \ not\ ]]; then
9049+
if [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn2)) 2>>$ERRFILE <<< "$hostcert")" =~ \ not\ ]]; then
90509050
# high threshold
9051-
if ! [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn1)) 2>>$ERRFILE <<< "$cert")" =~ \ not\ ]]; then
9051+
if [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn1)) 2>>$ERRFILE <<< "$hostcert")" =~ \ not\ ]]; then
90529052
pr_svrty_good "$days2expire >= $days2warn1 days"
90539053
expfinding+="$days2expire >= $days2warn1 days"
90549054
else

0 commit comments

Comments
 (0)