Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

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 New...