From e404cf8bdb25b4e03f30b350080cf7dc7e398e97 Mon Sep 17 00:00:00 2001 From: Odinmylord Date: Wed, 3 Jan 2024 14:27:11 +0100 Subject: [PATCH] add utf8 support to intermediate cert names --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index e6a1a13..36866b9 100755 --- a/testssl.sh +++ b/testssl.sh @@ -9882,7 +9882,7 @@ certificate_info() { fileout "intermediate_cert <#${i}>${json_postfix}" "INFO" "$(pem_to_one_line "$cert")" fileout "intermediate_cert_fingerprintSHA256 <#${i}>${json_postfix}" "INFO" "$(determine_cert_fingerprint_serial "$cert" "-fingerprint -sha256")" - intermediate_certs_txt[i]="$($OPENSSL x509 -text -noout 2>/dev/null <<< "$cert")" + intermediate_certs_txt[i]="$($OPENSSL x509 -text -nameopt utf8 -noout 2>/dev/null <<< "$cert")" # We don't need every value here. For the sake of being consistent here we add the rest IFS=',' read -r startdate enddate diffseconds days2expire yearstart < <(determine_dates_certificate "${intermediate_certs_txt[i]}")