[rabbitmq-discuss] Connecting to RabbitMQ on Windows Server Using Wildcard Cert with .NET Client Using SSL

Rich Miller richmiller167 at gmail.com
Wed Mar 20 17:40:27 GMT 2013

The title pretty much says it all. I'm trying quite unsuccessfully to get 
to a RabbitMQ server running as a service on Windows Server 2008 R2 using a 
.NET client.  Server is using a wildcard certificate issued by GeoTrust. 
 GeoTrust is listed in my Trusted Root Certificate Authorities on the 
client box.  I'm simply trying to set up an SSL connection between the 
client and the server, not trying to authenticate using a certificate. 
 I've read the docs on the RabbitMQ website and several other blog posts 
about setting this up, but I've had no success.

Typical error messages reported by the client include "Authentication 
failed because the remote party has closed the transport stream" and 
"Cannot find the requested object" (after trying to pass a .key file in as 
the cert file).

RabbitMQ Server is 2.7.1 and Erlang is R15B03-1.  Client code looks 
basically like this:

            ' configure the connection factory
            Me.Factory.HostName = hostName
            Me.Factory.VirtualHost = virtualHostName
            Me.Factory.UserName = userName
            Me.Factory.Password = password
            Me.Factory.Protocol = Protocols.AMQP_0_9_1
            Me.Factory.Port = AmqpTcpEndpoint.DefaultAmqpSslPort
            Me.Factory.Ssl.ServerName = hostName
            Me.Factory.Ssl.CertPath = 
            Me.Factory.Ssl.CertPassphrase = "thepassphrase"
            Me.Factory.Ssl.Enabled = True

            ' create the connection using the factory
            Return Me.Factory.CreateConnection()

I'd appreciate any tips or pointers from anyone who has successfully made 
the SSL connection from .NET client to RabbitMQ server running on Windows.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130320/057fb7f2/attachment.htm>

More information about the rabbitmq-discuss mailing list