Lionel Lim Posted October 21, 2016 Share Posted October 21, 2016 How do you connect to a Tibco EMS queue with SSL The following snippetreturns an exception "Failed to connect via SSL to [ssl://server:7243]: Failed to connect to the server atssl://server:7243". String host = "server"; String port = "7243"; String username = "user"; String password = "pass1234"; String certPath = @"C:TestCert.pfx"; String certPass = "abc123"; var connectionFactory = new ConnectionFactory("ssl://" + host + ":" + port); EMSSSLFileStoreInfo storeInfo = new EMSSSLFileStoreInfo(); storeInfo.SetSSLClientIdentity(certPath); storeInfo.SetSSLPassword(certPass.ToCharArray()); connectionFactory.SetCertificateStoreType(EMSSSLStoreType.EMSSSL_STORE_TYPE_FILE, storeInfo); connectionFactory.SetTargetHostName(host); connectionFactory.SetClientID(Guid.NewGuid().ToString()); connectionFactory.SetSSLTrace(true); Connection conn =connectionFactory.CreateConnection(username, password); Link to comment Share on other sites More sharing options...
Habib Qureshi Posted March 1, 2019 Share Posted March 1, 2019 Did you eventually solve the problem, if yes, how Let's share the solution.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now