-
Hi everyone, I have a RabbitMQ server. It's version 3.12.2 + erlang 26.0.2. Another I have program named agent using mosquitto lib (Protocol: mqtt over TLS-PSK ) to try to connect to this RabbitMQ server. But agent never connects to the server. So I checked the RabbitMQ logs found that it keeps showing "Insufficient Security" related errors as shown below. 2023-07-31 05:26:28.039000+00:00 [notice] <0.1272.0> TLS server: In state hello at tls_handshake.erl:354 generated SERVER ALERT: Fatal - Insufficient Security So I did two experiments.
Case 2. Change the connection protocol of agent to (mqtt over TLS 1.3) without PSK. And RabbitMQ server keep using elrang 26.0.2.
Is it possible to modify the rabbitmq config file so that the agent (mqtt over TLS-PSK) can connect to the rabbitmq server (3.12.2 + erlang 26.0.2). The content of rabbitmq.conf: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please provide a client application that can be run to reproduce this error, via a git repository we can clone, compile, and run. We just don't have time to guess how you are connecting to RabbitMQ. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi lukebakken, Thanks for your response. Then I looked more closely at the differences, and realized that I was using different libs. I think it's related to the openssl library. When the agent uses openssl library version 1.0.2o to connect to RabbitMQ server, it will show me "Insufficient Security" error message. When I change the openssl library to version 3.0.9, it works fine. |
Beta Was this translation helpful? Give feedback.
Hi lukebakken,
Thanks for your response.
I just tried to assign the ca files to the agent and let it connect to the RabbitMQ server (erlang 26.0.2). I found that it still fails to connect. This incident shows that the connection failure has nothing to do with PSK.
Then I looked more closely at the differences, and realized that I was using different libs.
I think it's related to the openssl library. When the agent uses openssl library version 1.0.2o to connect to RabbitMQ server, it will show me "Insufficient Security" error message. When I change the openssl library to version 3.0.9, it works fine.