How to set SSL private key password parameters in a generic JMS client rather than invoke a call to a proprietary API such as the following"factory.setSSLPassword("password");" ?

How to set SSL private key password parameters in a generic JMS client rather than invoke a call to a proprietary API such as the following"factory.setSSLPassword("password");" ?

book

Article ID: KB0089973

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
When the EMS Server authorization is turned on, you need to provide a valid username and password in order to connect. You do so with the createConnection(String user, String password) method.

If you are also using a looked up connection factory for ssl connection, you need to provide the "ssl password". However you can not config the ssl password in the ConnectionFactory, because of security reason. so EMS will attempt to use the one that is provided in the createConnection() call. When passwords are different, that will fail.

You need then to use the TibjmsSSL.setPassword() to set the password, or TibjmsConnectionFactory.setSSLPassword(); Please refer to EMS Java doc for more information.

Issue/Introduction

How to set SSL private key password parameters in a generic JMS client rather than invoke a call to a proprietary API such as the following"factory.setSSLPassword("password");" ?