amqp_direct_connection.erl: Use rabbit_cert_info
... to query certificate informations, instead of rabbit_ssl. The former is provided by rabbitmq-common while the latter is in rabbitmq-server. It allows to remove a dependency of the Erlang client on the broker. [#118490793]
This commit is contained in:
parent
a523296b6a
commit
21b3a3a292
|
|
@ -212,11 +212,11 @@ ssl_cert_info(Sock) ->
|
|||
case rabbit_net:peercert(Sock) of
|
||||
{ok, Cert} ->
|
||||
[{peer_cert_issuer, list_to_binary(
|
||||
rabbit_ssl:peer_cert_issuer(Cert))},
|
||||
rabbit_cert_info:issuer(Cert))},
|
||||
{peer_cert_subject, list_to_binary(
|
||||
rabbit_ssl:peer_cert_subject(Cert))},
|
||||
rabbit_cert_info:subject(Cert))},
|
||||
{peer_cert_validity, list_to_binary(
|
||||
rabbit_ssl:peer_cert_validity(Cert))}];
|
||||
rabbit_cert_info:validity(Cert))}];
|
||||
_ ->
|
||||
[]
|
||||
end.
|
||||
|
|
|
|||
Loading…
Reference in New Issue