|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem in setting truststore & keystore properties dyna |
« View previous topic :: View next topic » |
Author |
Message
|
shanmukg |
Posted: Fri Oct 01, 2004 1:40 am Post subject: Problem in setting truststore & keystore properties dyna |
|
|
Newbie
Joined: 01 Oct 2004 Posts: 1
|
Hi,
I have problem in setting property of keystore and truststore dynamically.
For the first queue manager it is working fine, but subsequent queue managers, it is throwing an error MQJE001: An MQException occurred: Completion Code 2, Reason 2397
MQJE056: Initial negotiation failure
MQJE001: Completion Code 2, Reason 2397
Can not connect to R501796.CCCS.AC Queue manager due to reason code:com.ibm.mq.MQException: MQJE001: Completio
n Code 2, Reason 2397
Root cause is :javax.net.ssl.SSLHandshakeException: unknown certificate
If i have only one queue manager, it is working fine, but for multiple qmgrs it is throwing above error.
Please can anyone help me to sort out problem...
With regards
shan |
|
Back to top |
|
 |
Tibor |
Posted: Wed Oct 27, 2004 3:24 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
Look JSSE documentation at Sun:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#InstallationAndCustomization
Quote: |
* To set a system property statically, use the -D option of the java command. For example, to run an application named MyApp and set the javax.net.ssl.trustStore system property to specify a truststore named "MyCacertsFile", type the following:
java -Djavax.net.ssl.trustStore=MyCacertsFile MyApp
* To set a system property dynamically, call the java.lang.System.setProperty method in your code:
System.setProperty(propertyName, "propertyValue");
substituting the appropriate property name and value. For example, a setProperty call corresponding to the previous example for setting the javax.net.ssl.trustStore system property to specify a truststore named "MyCacertsFile" would be:
System.setProperty("javax.net.ssl.trustStore", "MyCacertsFile");
|
HTH,
Tibor |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|