From f4b1bb28a006452ceaa74735f4ea3e900899cb62 Mon Sep 17 00:00:00 2001 From: Odinmylord Date: Tue, 2 Jan 2024 14:06:18 +0100 Subject: [PATCH] Update certificate_info function to include key algorithm in error messages --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index e6a1a13..0bc1a6b 100755 --- a/testssl.sh +++ b/testssl.sh @@ -9110,7 +9110,7 @@ certificate_info() { json_rating="OK"; json_msg="$short_keyAlgo $cert_keysize bits" else out "keysize: $cert_keysize (not expected, FIXME)" - json_rating="DEBUG"; json_msg=" $cert_keysize bits (not expected)" + json_rating="DEBUG"; json_msg=" $short_keyAlgo $cert_keysize bits (not expected)" ((ret++)) fi out " bits" @@ -9139,7 +9139,7 @@ certificate_info() { out " bits" else pr_warning "weird key size: $cert_keysize bits"; out " (could cause compatibility problems)" - json_rating="WARN"; json_msg="$cert_keysize bits (Odd)" + json_rating="WARN"; json_msg="$short_keyAlgo $cert_keysize bits (Odd)" ((ret++)) fi