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 » General Discussion » Java Application With MQ using SSL error !!!!!!!!!! Urgent

Post new topic  Reply to topic
 Java Application With MQ using SSL error !!!!!!!!!! Urgent « View previous topic :: View next topic » 
Author Message
Balaji_P
PostPosted: Sun Jan 17, 2010 6:42 pm    Post subject: Java Application With MQ using SSL error !!!!!!!!!! Urgent Reply with quote

Apprentice

Joined: 05 Sep 2006
Posts: 36
Location: Chennai

Hi

Recently we implemented the SSL for one of our Java Application to connect to Websphere MQ. We found that it didnt go well and Queue Manager is rejecting the connection . The information we have at the Java application end is as below

com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE013: Error accessing socket streams
at com.ibm.mq.SSLHelper.createSSLSocketInstance(SSLHelper.java:470)
at com.ibm.mq.SSLHelper.createSSLSocket(SSLHelper.java:118)
at com.ibm.mq.MQInternalCommunications.createSocketConnection(MQInternalCommunications.java:1587)
at com.ibm.mq.MQInternalCommunications.access$000(MQInternalCommunications.java:114)
at com.ibm.mq.MQInternalCommunications$1.run(MQInternalCommunications.java:498)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.MQInternalCommunications.<init>(MQInternalCommunications.java:494)
at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1344)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:218)[/b]

Any guess or direction on what may be the reason for this error.
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Jan 17, 2010 7:04 pm    Post subject: Re: Java Application With MQ using SSL error !!!!!!!!!! Urge Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Balaji_P wrote:
Any guess or direction on what may be the reason for this error.


Does exactly the same connection work without SSL?

Does exactly the same connection with SSL for a non-Java app?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Balaji_P
PostPosted: Sun Jan 17, 2010 11:50 pm    Post subject: Reply with quote

Apprentice

Joined: 05 Sep 2006
Posts: 36
Location: Chennai

Yes it works fine for non SSL. Moreover, we have a valid certificate for the application now and when we tried renewing them(creating new) it has thrown the above error.

Now we have rolled back our changes.

Can someone help me in figuring out the exact steps for SSL Implementation from Java Application to IBM websphere MQ
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 18, 2010 8:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You changed the client cert only?
Did you check for compatibility with the certs (client / server) and channel attributes?

Is the CA of the new client cert known to the server?


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Mon Jan 18, 2010 8:36 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

http://www.ibm.com/developerworks/websphere/library/techarticles/0510_fehners/0510_fehners.html

However I would suggest using a CCDT with Java to hold the SSL configuration options, now that this is supported.
Back to top
View user's profile Send private message
Balaji_P
PostPosted: Mon Jan 18, 2010 8:14 pm    Post subject: Reply with quote

Apprentice

Joined: 05 Sep 2006
Posts: 36
Location: Chennai

Hi

Thanks all for the reply.

We are using Websphere MQ Base Classes for Java. The Java application has the Keystore( JKS) which has imported Certificate(.crt ) into it.

We are having a keystore and trustore protected with password.

What are all the things we need to do at the queue manager end or if somebody can brief me the steps on "Enabling the SSL Between Java Client and MQ Server".

Thanks in advance. Its an production change so kindly help
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 » General Discussion » Java Application With MQ using SSL error !!!!!!!!!! Urgent
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.