Good day, I am facing an issue with connecting through AMQPS. AMQP is working, and the connection is established. However, TLS 1.2 stubbornly refuses to work.
Here's the situation: I have a web.config file for an IIS website, which includes settings for message exchange in and out. It looks as follows:
<!-- start Rabbit MQ login & SSL settings -->
<add key="rmqUserId" value="*********" />
<add key="rmqPassword" value="*********" />
<!--<add key="rmqUserId" value="************" />
<add key="rmqPassword" value="************" />-->
<add key="rmqPrefetch" value="100" />
<add key="rmqSubscriptionCount" value="1" />
<!-- SSL client configuration-->
<!-- .net 4.8 RabbitMq client supports: Tls13 or Tls12 version -->
<!-- .net 4.7 and earlier RabbitMq client supports: Tls12 version -->
<add key="rmqSslProtocolVersion" value="Tls12" />
<add key="rmqServerName" value="rabbit-t4.isb" />
<add key="rmqCertificatePassphrase" value="************" />
<add key="certificatefilepath" value="C:\SSLCERTS\test.p12" />
<add key="rmqCertificateFilepath" value="C:\SSLCERTS\coreit-rabbitmq-test.cer" />
<!-- identity server "false" -->
<add key="rmqIgnorePeerCheck" value="false" />
<!-- end Rabbit MQ login & SSL settings end -->
<!-- start Rabbit MQ uri-->
<!-- no TLS-->
<!-- <add key="rmq.dir.out" value="amqp://rabbit-t4.isb:5672/quorumsmev_dx/INT_REG/smev_svedflmob_quorumsmev_req_q" />
<add key="rmq.dir.in" value="amqp://rabbit-t4.isb:5672/quorumsmev_dx/INT_REG/smev_mobilsmev_quorumsmev_res_q" />
-->
<!--TLS 1.2-->
<add key="rmq.dir.out" value="amqps://rabbit-t4.isb:5671/q_dx/INT/q_req_q" />
<add key="rmq.dir.in" value="amqps://rabbit-t4.isb:5671/q_dx/INT/q_res_q" />
where req_q stands for outcoming messages, and res_q for incoming.
From the adapter side on the website, the following errors occur during connection (log below):
2024-01-29 08:26:58,107 [17] ERROR - System.ComponentModel.Win32Exception (0x80004005): The message received was unexpected or badly formatted
2024-01-29 08:26:58,107 [17] ERROR - Error creating subscription. EndPoint: amqp://rabbit-t4.isb:5671, Exchange: quorumsmev_dx, VirtualHost: [smev_svedflmob_quorumsmev_req_q], Queue: . Cause: None of the specified endpoints were reachable, Stack: at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
at Components.UC.AppServices.ChannelService.MqRabbitConnectionManagers.MqRabbitInputConnectionManager..ctor(ConnectionFactory factory)
at Components.UC.AppServices.ChannelService.MqRabbitConnectionManagers.MqRabbitInputConnectionManager.GetInstance(ConnectionFactory factory)
at Components.UC.AppServices.Processing.RabbitMqProcessorImplementation.RabbitMqProcessor.Subscribe(String path). Merod: RabbitMqProcessor.SubscribeWhat could be the problem? For details, I can provide excerpts from the advanced.config files and the necessary screenshots. And a small clarification - during the connection to AMQPS, in the logs, as you can see, it displayed amqp://rabbit....
Is this the expected behavior?