[rabbitmq-discuss] Rabbit + .Net + SSL

Dan B danbarua at gmail.com
Tue Jun 7 13:19:44 BST 2011


Hi,

Me again.

I'm having a bit of a nightmare getting Rabbit running with SSL using
the .Net client.

rabbitmq.config is:
[
  {rabbit, [
     {ssl_listeners, [5671]},
     {ssl_options, [{cacertfile,"C:/CAConfig/trustisroot.cer"},
                    {certfile,"C:/CAConfig/publicCertificate.cer"},
                    {keyfile,"C:/CAConfig/private.pem"},
                    {verify,verify_peer},
                    {fail_if_no_peer_cert,false}]}
   ]}
].

Client says:
System.IO.IOException: Authentication failed because the remote party
has closed
 the transport stream.

Rabbit says:
=INFO REPORT==== 7-Jun-2011::13:09:55 ===
accepted TCP connection on 0.0.0.0:5671 from 192.168.0.20:52754

=INFO REPORT==== 7-Jun-2011::13:09:55 ===
starting TCP connection <0.2710.0> from 192.168.0.20:52754

=ERROR REPORT==== 7-Jun-2011::13:09:55 ===
SSL: 1092: error:[] C:/CAConfig/publicCertificate.cer
  [{ssl_connection,init_certificates,5},
   {ssl_connection,ssl_init,2},
   {ssl_connection,init,1},
   {gen_fsm,init_it,6},
   {proc_lib,init_p_do_apply,3}]


=ERROR REPORT==== 7-Jun-2011::13:09:55 ===
error on TCP connection <0.2710.0>:{ssl_upgrade_error,ecertfile}

=INFO REPORT==== 7-Jun-2011::13:09:55 ===
closing TCP connection <0.2710.0>

Any ideas what I'm doing wrong?

Cheers,

Dan


More information about the rabbitmq-discuss mailing list