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

javax.jms.JMSSecurityException: Can not initialize SSL client: no trusted certificates are set

Tanuja dubey

Recommended Posts

My java code attempts to connect to tibco server withthe following code:

Context jndiContext = new InitialContext(env);

ConnectionFactory connectionFactory = (ConnectionFactory) jndiContext.lookup(connectionfactoryname);

Destination dest = (Destination) jndiContext.lookup(QueueName);

Connection connection = connectionFactory.createConnection(username,password);

Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);


I get the below exception when connectionFactory.createConnection(username,password) is attempted:

javax.jms.JMSSecurityException: Can not initialize SSL client: no trusted certificates are set

at com.tibco.tibjms.TibjmsxLinkSSL._initSSL(

at com.tibco.tibjms.TibjmsxLinkSSL.connect(

at com.tibco.tibjms.TibjmsConnection._create(

at com.tibco.tibjms.TibjmsConnection.(

at com.tibco.tibjms.TibjmsQueueConnection.(

at com.tibco.tibjms.TibjmsxCFImpl._createImpl(

at com.tibco.tibjms.TibjmsxCFImpl._createConnection(

at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(

at MapProducer.main(


i have provided the below properties to intial context -env:

com.tibco.tibjms.naming.security_protocol=ssl, com.tibco.tibjms.naming.ssl_enable_verify_host=false, com.tibco.tibjms.naming.ssl_identity=messserv.p12, com.tibco.tibjms.naming.ssl_password=mypass, com.tibco.tibjms.naming.ssl_trusted_certs=trustcert.pem,


I also tried importing the certificate to java cert store, but that did not help either. What am i missing


Link to comment
Share on other sites

  • Create New...