Establishing a SSL connection to RabbitMQ using the .NET client
First, I'm making the assumption that you've read, re-read, and followed the SSL tutorial on rabbitmq's website . If you haven't done everything that it's instructed you to do (including adding your certificates to the Windows Certificate Store using certmgr), none of this code is going to work for you. If you have, this code should "Just Work™". Here's the complete code file that works for me. You will (obviously) need to change the names of the servers, and the thumbprint of your certificate. Note that this code only uses your client and server's certificates to establish a secure connection. You are still logging in as guest. I will show you how to use your client certificate to authenticate yourself below. using System; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using RabbitMQ.Client; using RabbitMQ.Util; namespace RabbitSslTest { class Program { ...