ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem in setting truststore & keystore properties dyna

Post new topic  Reply to topic
 Problem in setting truststore & keystore properties dyna « View previous topic :: View next topic » 
Author Message
shanmukg
PostPosted: Fri Oct 01, 2004 1:40 am    Post subject: Problem in setting truststore & keystore properties dyna Reply with quote

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
View user's profile Send private message
Tibor
PostPosted: Wed Oct 27, 2004 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem in setting truststore & keystore properties dyna
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.