[rabbitmq-discuss] Using rabbitmq_auth_mechanism_ssl with the .NET client

John Ruiz jruiz at johnruiz.com
Tue Dec 27 21:22:16 GMT 2011

I have figured it out.  There were two issues.

1. Add the external mechanism factory to your connection factory's
auth mechanisms
    i.e. -- cf.AuthMechanisms = new AuthMechanismFactory[] { new
ExternalMechanismFactory() };

2. Configure the server's auth_mechanisms variable in your
    Here is my complete rabbitmq.config:

  {rabbit, [
     {ssl_listeners, [5671]},
     {ssl_options, [{cacertfile,"C:/Path/To/Your/cacert.pem"},

On Dec 27, 1:16 pm, John Ruiz <jr... at johnruiz.com> wrote:
> Hi All,
> I've successfully followed the SSL tutorial and gotten my .NET client
> to connect, send, and receive messages over SSL.  See my blog for the
> code:http://blog.johnruiz.com/2011/12/establishing-ssl-connection-to-rabbi....
> As the next step, I enabled the plugin "rabbitmq_auth_mechanism_ssl"
> and then re-installed the Windows Service.  Then I re-ran the code I
> have listed in my blog -- with the addition of a Console.ReadLine() at
> the end of my using statements so I can see the connection details in
> the management web app.
> I am still connecting as guest.  What do I need to do in order to
> connect as the CN of the Subject on my certificate?
> Thanks!
> ~ jR
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list