Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.

916 views
Skip to first unread message

Nanda Perumal

unread,
May 18, 2023, 5:56:32 AM5/18/23
to rabbitmq-users
Hi, 

I am trying to create the connection from my console application and I end up with following error.

    1. AggregateException: One or more errors occurred. (Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.)
    2. AuthenticationException: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.
c. Win32Exception: The message received was unexpected or badly formatted

Using s_Client I am able to connect the broker to send the message. My protocol is TLS1.2. 
Rabbitmq configuration is

[
{rabbit, [
            {cluster_partition_handling, autoheal},
{handshake_timeout, 60000},
{auth_mechanisms, ['EXTERNAL']},
{ssl,      true},
  {ssl_listeners, [5671]},
{ssl_options,[
{cacertfile,"E:/Reference/Certificates/18_may_2023/testca/ca_certificate.pem"},
{certfile,"E:/Reference/Certificates/18_may_2023/server/server_certificate.pem"},
{keyfile, "E:/Reference/Certificates/18_may_2023/server/private_key.pem"},
{password,  "MySecretPassword"},
{verify, verify_peer},
            {fail_if_no_peer_cert, true}]}
]}].
Reply all
Reply to author
Forward
0 new messages