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 IBM MQ Support » SSL setup on Linux MQ

Post new topic  Reply to topic
 SSL setup on Linux MQ « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Wed May 11, 2011 11:40 am    Post subject: SSL setup on Linux MQ Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Hi Guys,
We are using MQ v 7.0.1.4 on Linux x86_64.

I am planning to setup SSL between MQ manager running on Linux and clients on Windows machines.

I am playing around by creating a self signed certificate as below but I am getting an error while creating a self signed cert as below.

Quote:
$ gsk7cmd -keydb -create -db /var/mqm/qmgrs/QM1/ssl/key.kdb -pw xyz -type cms -expire 1825 -stash



The provider for keystore type 'IBMCMSKS' is not available.



Ensure that the necessary provider JAR file is on the class path or in the ext directory, and that the provider has been added to the java.security file.

I tried exporting JAVA_HOME to /opt/mqm/ssl as I have seen in one of the document.
Quote:
export JAVA_HOME to /opt/mqm/ssl
(under /opt/mqm, there is no ssl directory and I even tried to create the ssl directory but still getting the same error).

Please advice.

Thanks.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Wed May 11, 2011 11:59 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

on AIX box , I used to do
export PATH=/usr/mqm/ssl/jre/bin:$PATH
export JAVA_HOME=/usr/mqm/ssl/jre
cd /var/mqm/qmgr/QMGR1/ssl
gsk7cmd -keydb -create -db key.kdb -pw password -type cms -expire 7000 –stash

(gsk command looks good to me though).

On Linux :
export PATH=/opt/mqm/ssl/jre/bin:$PATH
export JAVA_HOME=/opt/mqm/ssl/jre
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Wed May 11, 2011 12:05 pm    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

I don't think that you should be creating ssl directory file inside the /opt/mqm (linux) or /usr/mqm (aix) , it comes with the package and owned by mqm.

_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Sam Uppu
PostPosted: Wed May 11, 2011 12:30 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

shashivarungupta wrote:
I don't think that you should be creating ssl directory file inside the /opt/mqm (linux) or /usr/mqm (aix) , it comes with the package and owned by mqm.


Thatswhat I thought but I dont see 'ssl' directory under '/opt/mqm' on my Linux machine. I see that gsk7 packages are installed. Not sure what else need to install.

Thanks.
Back to top
View user's profile Send private message
mvic
PostPosted: Wed May 11, 2011 1:04 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

What is the output from "rpm -qa | grep MQSeries"
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Wed May 11, 2011 2:38 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

mvic wrote:
What is the output from "rpm -qa | grep MQSeries"


bash-3.2$ rpm -qa | grep MQSeries
MQSeriesSamples-7.0.1-0
MQSeriesJRE-U834985-7.0.1-3
MQSeriesServer-U836464-7.0.1-4
MQSeriesJRE-7.0.1-0
MQSeriesClient-U834985-7.0.1-3
MQSeriesMan-U834985-7.0.1-3
MQSeriesJRE-U836464-7.0.1-4
MQSeriesServer-7.0.1-0
MQSeriesTXClient-7.0.1-0
MQSeriesSamples-U834985-7.0.1-3
MQSeriesServer-U834985-7.0.1-3
MQSeriesSDK-U836464-7.0.1-4
MQSeriesClient-U836464-7.0.1-4
MQSeriesJava-7.0.1-0
MQSeriesSDK-7.0.1-0
MQSeriesRuntime-U834985-7.0.1-3
MQSeriesTXClient-U834985-7.0.1-3
MQSeriesMan-7.0.1-0
MQSeriesRuntime-U836464-7.0.1-4
MQSeriesTXClient-U836464-7.0.1-4
MQSeriesClient-7.0.1-0
MQSeriesSDK-U834985-7.0.1-3
MQSeriesJava-U836464-7.0.1-4
MQSeriesRuntime-7.0.1-0
MQSeriesJava-U834985-7.0.1-3
MQSeriesSamples-U836464-7.0.1-4

bash-3.2$ rpm -qa | grep gsk7
gsk7bas64-7.0-4.29
gsk7bas-7.0-4.29

Let me know if I missed anything to install.

Thanks.
Back to top
View user's profile Send private message
mvic
PostPosted: Wed May 11, 2011 3:00 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Review this page: http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amq1ac.doc/lq10450_.htm

It looks like you might be missing the RPMs for "SSL support" : ie. the MQSeriesKeyman package.

if you created any files or directories under /opt/mqm it might be wise to remove them before running the MQ installer... it believes it has the right to add or remove anything it wants under that path.
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Wed May 11, 2011 3:28 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

mvic wrote:
Review this page: http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amq1ac.doc/lq10450_.htm

It looks like you might be missing the RPMs for "SSL support" : ie. the MQSeriesKeyman package.

if you created any files or directories under /opt/mqm it might be wise to remove them before running the MQ installer... it believes it has the right to add or remove anything it wants under that path.


Good catch.. thank you!.
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Thu May 12, 2011 5:04 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Sam Uppu wrote:
mvic wrote:
Review this page: http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amq1ac.doc/lq10450_.htm

It looks like you might be missing the RPMs for "SSL support" : ie. the MQSeriesKeyman package.

if you created any files or directories under /opt/mqm it might be wise to remove them before running the MQ installer... it believes it has the right to add or remove anything it wants under that path.


Good catch.. thank you!.


I created the Qmgr on linux machine and configured client machine with SSL but I am getting below errors:

Clinet(windows) command prompt:

Quote:
C:\Users\uppus01>set mq
mqchllib=C:\MQCLIENT\
mqchltab=QM1.TAB
MQFT_JAVA_LIB_PATH=C:\Program Files\IBM\WebSphere MQ\java\jre\lib
MQFT_JRE_BIN_PATH=C:\Program Files\IBM\WebSphere MQ\java\jre\bin
mqsslkeyr=C:\MQCLIENT\key
MQ_FILE_PATH=C:\Program Files\IBM\WebSphere MQ
MQ_JAVA_DATA_PATH=C:\Program Files\IBM\WebSphere MQ
MQ_JAVA_INSTALL_PATH=C:\Program Files\IBM\WebSphere MQ\Java
MQ_JAVA_LIB_PATH=C:\Program Files\IBM\WebSphere MQ\Java\lib
MQ_JRE_PATH=C:\Program Files\IBM\WebSphere MQ\java\jre

C:\Users\uppus01>amqsputc TESTQ
Sample AMQSPUT0 start
MQCONN ended with reason code 2538

C:\Users\uppus01>MQRC 2538

2538 0x000009ea MQRC_HOST_NOT_AVAILABLE

C:\Users\uppus01>amqsputc TESTQ QM1
Sample AMQSPUT0 start
MQCONN ended with reason code 2058

C:\Users\uppus01>mqrc 2058

2058 0x0000080a MQRC_Q_MGR_NAME_ERROR

C:\Users\uppus01>amqsputc TESTQ QM1
Sample AMQSPUT0 start
MQCONN ended with reason code 2058


Errors on the Qmgr side:
I don’t see any FDCs generated but I do see few errors in the Qmgr error logs:

Quote:
The channel did not start.
ACTION:
Make sure the appropriate certificates are correctly configured in the key
repositories for both ends of the channel.

AMQ9492: The TCP/IP responder program encountered an error.

EXPLANATION:
The responder program was started but detected an error.
ACTION:
Look at previous error messages in the error files to determine the error
encountered by the responder program.

AMQ9637: Channel is lacking a certificate.

EXPLANATION:
The channel is lacking a certificate to use for the SSL handshake. The channel
name is '????' (if '????' it is unknown at this stage in the SSL processing).
The channel did not start.
ACTION:
Make sure the appropriate certificates are correctly configured in the key
repositories for both ends of the channel.


Please advice.

Thanks
Back to top
View user's profile Send private message
exerk
PostPosted: Thu May 12, 2011 5:31 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

As regards the Windows end, are you sure the queue manager name you are supplying on the command line matches the queue manager name in the CLNTCONN definition, and that the queue manager name in the CLNTCONN definition matches the name of the queue manager to which you are trying to connect?

Create two CCDT files, one with SSL applied to the channel and one without (copy the original and use SupportPac MO72 to alter the definition in the copy). Ensure you can connect using the non-SSL CCDT file then switch to the SSL CCDT file. This sort of cut-out testing ensures that any errors/issues you encounter are not down to 'mechanical' failure, e.g. incorrect set up.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
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 IBM MQ Support » SSL setup on Linux MQ
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.