mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-05-13 12:59:22 +02:00
Merge pull request #3033 from testssl/fix_unicode_3003_3.2
Fix DN conversion when reading certificate issuer (3.2)
This commit is contained in:
@@ -22416,7 +22416,7 @@ print_dn() {
|
||||
fi
|
||||
# Use the LDAP String Representation of Distinguished Names (RFC 2253),
|
||||
# The current specification is in RFC 4514.
|
||||
name="$(hex2binary "$cert" | $OPENSSL x509 -issuer -noout -inform DER -nameopt RFC2253 2>/dev/null)"
|
||||
name="$(hex2binary "$cert" | $OPENSSL x509 -issuer -noout -inform DER -nameopt RFC2253,-esc_msb 2>/dev/null)"
|
||||
name="${name#issuer=}"
|
||||
tm_out "$(strip_leading_space "$name")"
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user