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