summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_ssl.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_ssl.erl b/src/rabbit_ssl.erl
index 6859341301..8ef31fb663 100644
--- a/src/rabbit_ssl.erl
+++ b/src/rabbit_ssl.erl
@@ -216,6 +216,8 @@ format_asn1_value(V) when is_binary(V) ->
%% type. That's probably wrong, so as a last ditch effort let's
%% try manually decoding. This is certainly not guaranteed to work
%% in all cases, but if we have a printableString we're in luck.
+ %% 'CommonName' is somewhat arbitrary - we need a valid type, and
+ %% der_decode/2 will do some type checking against it.
try
public_key:der_decode('CommonName', V)
catch _:_ ->