Debug begone
This commit is contained in:
parent
845e6c13a3
commit
02fb4ef9ca
|
@ -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 $?
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue