[Mono-list] Trouble establishing client authenticated ssl connection to ActiveMQ using NMS
Brian Cole
bcole at tripwire.com
Thu Oct 2 21:54:19 UTC 2014
I am new to this list so I apologize if this post is off topic.
I am a .Net engineer working on a windows application. I am experimenting with getting our code running on Mono to expose some of our services to teams working on non-windows platforms. We use ActiveMQ for messaging and our windows application connects to ActiveMQ using the Apache.NMS.ActiveMQ library. I am trying to create a client authenticated ssl connection to ActiveMQ. The connection string I am using is
activemq:ssl://ActiveMQServer:61616?transport.UseLogging=true&transport.clientCertSubject=CN%3DMonoCert
The cert named in the connection string was created locally on the box using OpenSSL and imported to the My trust store using certmgr. I have this same cert imported into the Personal folder on my windows box and the very same code with the same connection string running on windows successfully creates the connection. When I attempt to create the connection with Mono the following exception occurs
Apache.NMS.NMSException: Could not connect to broker URL: ssl://ActiveMQServer:61616/?transport.uselogging=true&transport.clientcertsubject=CN=MonoCert. Reason: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (IAsyncResult result) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Apache.NMS.ActiveMQ.ConnectionFactory.CreateActiveMQConnection (System.String userName, System.String password) [0x00000] in <filename unknown>:0
at Apache.NMS.ActiveMQ.ConnectionFactory.CreateActiveMQConnection () [0x00000] in <filename unknown>:0
at Apache.NMS.ActiveMQ.ConnectionFactory.CreateConnection () [0x00000] in <filename unknown>:0
at Apache.NMS.NMSConnectionFactory.CreateConnection () [0x00000] in <filename unknown>:0
at Tlc.ComponentInfrastructure.ActiveMQManager.StartActiveMQ () [0x00000] in <filename unknown>:0
I would really appreciate some suggestions on how to fix this problem,
Thanks a lot
Brian Cole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20141002/159f59d0/attachment.html>
More information about the Mono-list
mailing list