rabbitmq / rabbitmq-dotnet-client

RabbitMQ .NET client for .NET Standard 2.0+ and .NET 4.6.2+
https://www.rabbitmq.com/dotnet.html
Other
2.05k stars 575 forks source link

Authentication failed because the remote party sent a TLS alert: 'InsuffientSecurity' #1474

Closed kevinvenclovas closed 5 months ago

kevinvenclovas commented 5 months ago

Describe the bug

Hello,

on my application i connecting to my rabbbitmq hosted on AWS.

factory = new ConnectionFactory()
 {
     HostName = "XXX",
     Port = 5671,
     Password = "XXX",
     UserName = "XXX",
}

This connection works very well on Debug mode on IIS Express. But when i publish my app on my IIS Server on a Windows machine i get following exception:

RabbitMQ.Client.Exceptions.BrokerUnreachableException\r\n\r\nNone of the specified endpoints were reachable\r\n\r\nSystem.AggregateException: 
One or more errors occurred. (Authentication failed because the remote party sent a TLS alert: 
'InsuffientSecurity'.)\r\n ---> System.Security.Authentication.AuthenticationException: Authentication failed because the remote party sent a TLS alert: 
'InsuffientSecurity'.

Someone had this issue too and can help me?

RabbitMQ.Client Version: 6.5.0 IIS Version: 8 Windows: Windows Server 12

Reproduction steps

  1. Connect to RabbitMQ via IIS
  2. ...

Expected behavior

Connect to RabbitMQ without exception :D

Additional context

No response