Unable to connect via ssl to rabbitmq

250 views
Skip to first unread message

shrey...@gmail.com

unread,
Apr 1, 2016, 2:52:30 AM4/1/16
to rabbitmq-users
hi
       I am trying to connect securely to the rabbit mq server using SSL and have followed the example at http://www.rabbitmq.com/ssl.html#configuring-dotnet. I am using .Net 4.5. I get the error The client and server cannot communicate, because they do not possess a common algorithm. Below is my client code and config for the server. The location to certificate and passphrase are correct.
ConnectionFactory cf = new ConnectionFactory();

                //cf.uri = new Uri("amqps://guest:guest@localhost:5671/vhost");
                cf.Uri = "amqps://localhost:5671/";

                cf.Ssl.Enabled = true;
                 cf.Ssl.ServerName = System.Net.Dns.GetHostName();
                 cf.Ssl.CertPath = "location_to_certificate/keycert.p12";
                 cf.Ssl.CertPassphrase = "";
                 cf.Ssl.Enabled = true;
                 cf.Ssl.AcceptablePolicyErrors = SslPolicyErrors.RemoteCertificateNameMismatch |
                                                 SslPolicyErrors.RemoteCertificateChainErrors;
                 cf.Ssl.Version = System.Security.Authentication.SslProtocols.Tls12;
--ssl config--

{ssl_listeners, [5671]},
           {ssl_options, [{cacertfile,"/cacert.pem"},
                          {certfile,  /cert.pem"},
                          {keyfile,   /key.pem"},
  {password,  ""},
  {verify,verify_none},
{fail_if_no_peer_cert,false},
{versions, ['tlsv1.2', 'tlsv1.1', tlsv1]},
{ciphers,  [{dhe_rsa,aes_256_cbc,sha}]}
                         ]}


I also get this error in the rabbit log
=ERROR REPORT==== 1-Apr-2016::12:13:26 ===
SSL: hello: tls_handshake.erl:116:Fatal error: insufficient security

I am using windows 8.1 64 bit


Can anyone point me in the right direction. thanks in advance

Michael Klishin

unread,
Apr 1, 2016, 4:20:00 AM4/1/16
to rabbitmq-users
Not sure how this happened but there are two identical threads now
and my response is a third :/ Answered in https://groups.google.com/forum/#!topic/rabbitmq-users/NUEmb7BLzIA.
Reply all
Reply to author
Forward
0 new messages