We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4af9016 + 45b5d7a commit d531981Copy full SHA for d531981
1 file changed
testssl.sh
@@ -9046,9 +9046,9 @@ certificate_info() {
9046
set_grade_cap "T" "Certificate expired"
9047
else
9048
# low threshold first
9049
- if ! [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn2)) 2>>$ERRFILE <<< "$cert")" =~ \ not\ ]]; then
+ if [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn2)) 2>>$ERRFILE <<< "$hostcert")" =~ \ not\ ]]; then
9050
# high threshold
9051
- if ! [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn1)) 2>>$ERRFILE <<< "$cert")" =~ \ not\ ]]; then
+ if [[ "$($OPENSSL x509 -checkend $((secsaday*days2warn1)) 2>>$ERRFILE <<< "$hostcert")" =~ \ not\ ]]; then
9052
pr_svrty_good "$days2expire >= $days2warn1 days"
9053
expfinding+="$days2expire >= $days2warn1 days"
9054
0 commit comments