diff --git a/testssl.sh b/testssl.sh index 74abd5c..43b2f10 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3896,7 +3896,6 @@ get_cn_from_cert() { # for e.g. russian sites -esc_msb,utf8 works in an UTF8 terminal -- any way to check platform indepedent? # see x509(1ssl): subject="$($OPENSSL x509 -in $1 -noout -subject -nameopt multiline,-align,sname,-esc_msb,utf8,-space_eq 2>>$ERRFILE)" - #echo "$subject" | sed "s/^.*CN\=//" | sed "s/\/.*$//" echo "$(awk -F'=' '/CN=/ { print $2 }' <<< "$subject")" return $? }