From c1d75f65ce27343b501e2fdd2f50797e012dc7fd Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 26 Jan 2018 17:02:00 +0100 Subject: [PATCH] polish screen output for (extended) keyusage --- testssl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testssl.sh b/testssl.sh index 2880d0d..338a599 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6593,18 +6593,18 @@ certificate_info() { outln "$cert_keyusage" if ( [[ " $cert_type " =~ " RSASig " ]] || [[ " $cert_type " =~ " DSA " ]] || [[ " $cert_type " =~ " ECDSA " ]] ) && \ [[ ! "$cert_keyusage" =~ "Digital Signature" ]]; then - prln_svrty_high "$indent -- certificate incorrectly used for digital signatures" + prln_svrty_high "$indent Certificate incorrectly used for digital signatures" fileout "${jsonID}${json_postfix}" "HIGH" "Certificate incorrectly used for digital signatures: \"$cert_keyusage\"" outok=false fi if [[ " $cert_type " =~ " RSAKMK " ]] && [[ ! "$cert_keyusage" =~ "Key Encipherment" ]]; then - prln_svrty_high "$indent -- certificate incorrectly used for key encipherment" + prln_svrty_high "$indent Certificate incorrectly used for key encipherment" fileout "${jsonID}${json_postfix}" "HIGH" "Certificate incorrectly used for key encipherment: \"$cert_keyusage\"" outok=false fi if ( [[ " $cert_type " =~ " DH " ]] || [[ " $cert_type " =~ " ECDH " ]] ) && \ [[ ! "$cert_keyusage" =~ "Key Agreement" ]]; then - prln_svrty_high "$indent -- certificate incorrectly used for key agreement" + prln_svrty_high "$indent Certificate incorrectly used for key agreement" fileout "${jsonID}${json_postfix}" "HIGH" "Certificate incorrectly used for key agreement: \"$cert_keyusage\"" outok=false fi @@ -6625,7 +6625,7 @@ certificate_info() { if [[ -n "$cert_ext_keyusage" ]]; then outln "$cert_ext_keyusage" if [[ ! "$cert_ext_keyusage" =~ "TLS Web Server Authentication" ]] && [[ ! "$cert_ext_keyusage" =~ "Any Extended Key Usage" ]]; then - prln_svrty_high "$indent -- certificate incorrectly used for TLS Web Server Authentication" + prln_svrty_high "$indent Certificate incorrectly used for TLS Web Server Authentication" fileout "${jsonID}${json_postfix}" "HIGH" "Certificate incorrectly used for TLS Web Server Authentication: \"$cert_ext_keyusage\"" outok=false fi