Tanuja dubey Posted August 21, 2020 Share Posted August 21, 2020 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(TibjmsxLinkSSL.java:289) at com.tibco.tibjms.TibjmsxLinkSSL.connect(TibjmsxLinkSSL.java:390) at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1302) at com.tibco.tibjms.TibjmsConnection.(TibjmsConnection.java:4182) at com.tibco.tibjms.TibjmsQueueConnection.(TibjmsQueueConnection.java:36) at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:200) at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253) at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(TibjmsConnectionFactory.java:58) at MapProducer.main(MapProducer.java:61) 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, java.naming.security.principal=mcsuser java.naming.security.credentials=mcsuser I also tried importing the certificate to java cert store, but that did not help either. What am i missing Thanks! 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