Jump to content

Connect to a Tibco EMS queue with SSL in .NET

Lionel Lim

Recommended Posts

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();




connectionFactory.SetCertificateStoreType(EMSSSLStoreType.EMSSSL_STORE_TYPE_FILE, storeInfo);





Connection conn =connectionFactory.CreateConnection(username, password);

Link to comment
Share on other sites

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...