Skip to content

Commit 60a9a89

Browse files
Allow for more ASN.1 string (sub)types
1 parent 73eb9b5 commit 60a9a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit_common/src/rabbit_cert_info.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ sanitize_other_name(Bin) when is_binary(Bin) ->
114114
%% but ASN.1 decoding functions in OTP only offer so much and SAN values
115115
%% are expected to be "string-like" by RabbitMQ
116116
case 'OTP-PUB-KEY':decode('DirectoryString', Bin) of
117-
{ok, {utf8String, Val}} -> Val;
118-
Other -> Other
117+
{ok, {_, Val}} -> Val;
118+
Other -> Other
119119
end.
120120

121121
%% Format and rdnSequence as a RFC4514 subject string.

0 commit comments

Comments
 (0)