Not able to connect RabbitMQ server using TLS 1.2 from RMQ client , getting exception

593 views
Skip to first unread message

somes bhowmick

unread,
Aug 13, 2019, 2:36:57 PM8/13/19
to rabbitmq-users
Hi All, 
I am getting exception to connect RMQ server using TLS 1.2 connection string . 
I am getting the following exception :
RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
   at RabbitMQ.Client.EndpointResolverExtensions.SelectOne[T](IEndpointResolver resolver, Func`2 selector)
   at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.Init(IEndpointResolver endpoints)
   at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
   --- End of inner exception stack trace ---
   at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
   at NServiceBus.Transport.RabbitMQ.ConnectionFactory.CreateConnection(String connectionName) 

We are using NserviceBus 6 and Rabbit MQ client version = 5.0.1
Server : windows 2012 R2
Any  remedy, Need urgent help. I have stuck there 

Luke Bakken

unread,
Aug 13, 2019, 5:12:22 PM8/13/19
to rabbitmq-users
Hello,

This is the important error:

The remote certificate is invalid according to the validation procedure.

By default, the RabbitMQ .NET client doesn't validate server certificates (https://github.com/rabbitmq/rabbitmq-dotnet-client/issues/339)

How are you configuring the .NET client to validate the server certificate? Could you please share your connection code?

Thanks -
Luke
Reply all
Reply to author
Forward
0 new messages