I develop below code for establish SSL connection with AMQ server: 
               string url = "ssl://<server>:<port>"
               ITransportFactory sslTransportFactory = new
SslTransportFactory();

                SslTransportFactory ssl = new SslTransportFactory();
                ssl.ClientCertSubject = <subject in cert>;
                ssl.ClientCertPassword = <cert password>;
                ssl.KeyStoreName = "MY";
                ssl.KeyStoreLocation = "CurrentUser";
                ssl.SslProtocol = "Tls12";  //protocol, check which is using
in AMQ version
                var ssl_url = new Uri(url);
                ITransport transport = ssl.CreateTransport(ssl_url);
                connection = new Connection(ssl_url, transport, new
IdGenerator());
Significant part is to import Root and client certificates on client and
server machines. Usually, you should have server certificate which you
import in Trusted Root folder (use mmc Windows tool) and  client certificate
into Personal (or named MY) folder.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Reply via email to