Debug begone

This commit is contained in:
Frank Breedijk 2016-07-06 00:12:48 +02:00
parent 845e6c13a3
commit 02fb4ef9ca
1 changed files with 0 additions and 1 deletions

View File

@ -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? # for e.g. russian sites -esc_msb,utf8 works in an UTF8 terminal -- any way to check platform indepedent?
# see x509(1ssl): # see x509(1ssl):
subject="$($OPENSSL x509 -in $1 -noout -subject -nameopt multiline,-align,sname,-esc_msb,utf8,-space_eq 2>>$ERRFILE)" 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")" echo "$(awk -F'=' '/CN=/ { print $2 }' <<< "$subject")"
return $? return $?
} }