Posted: Fri Nov 19, 2004 7:02 am Post subject: SSL testing failing
Acolyte
Joined: 09 Jul 2004 Posts: 63
I've set up two test qmgrs and am trying to implement SSL between the two. I've been following the instructions from the MQ docs so have 2 qmgrs, QM1 and QM2.
I created a key database file for each qmgr and then created a self signed cert for each. I then wanted to test this with a channel. I extracted the self signed cert from QM1 and inserted it into QM2. I then changed the qmgr attribute to SSLKEYR(/var/mqm/qmgrs/QMx/ssl/key) for each one and in the channel attributes for the sender/receiver pair used NULL_MD5 in the SSLCIPH attribute.
Upon starting the channel though I get:
11/19/04 14:46:01
AMQ9209: Connection to host 'etmq2 (xx.xx.xx.xx)' closed.
EXPLANATION:
An error occurred receiving data from 'etmq2 (xx.xx.xx.xx)' over TCP/IP. The
connection to the remote host has unexpectedly terminated.
ACTION:
Tell the systems administrator.
Can anyone shed any light? I'm new to SSL so should this at least work in theory?
The error doesn't look like an SSL Certificate error.
Did you check to see if the channels were running before the certificates were loaded?
Once you make sure the channels are running without the certificates, then load the certificates and set the channel attributes as you mentioned. Also check for SSLCAUTH channel attribute. For a one-way authentication it should be set to OPTIONAL and for a two-way authentication it should be set to REQUIRED on the receiver side of the channel.
It looks like you are trying to do a two-way authentication as you mentioned that you have created certificates on both the queue managers.
The label of the certificate must be "ibmwebspheremq<queuemanagername>" (everything lower case). Make sure you add the certificate of QM1 on QM2 as a Signer Certificate (since this is a self signed certificate) and vice versa.
Posted: Fri Nov 19, 2004 2:04 pm Post subject: SSL MQSeries Problems
Newbie
Joined: 16 Sep 2004 Posts: 2
Hi,
I'm also having trouble setting up 1 way SSL connections. Here's what I've done so far:
1. On QM1 I've assigned a certificate from Global Sign. The cert has the green check mark.
2. I've set the CipherSpec to Null MD5 on both QM1 and QM2.
3. On QM2 I've added the GloabaSign CA Root (?) certificate to the QM store.
4. I've restarted both Queue managers.
I get this error on QM2:
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.
You got this error because you never added the personal certificate to QM2 key database.
If QM1 is the queue manager which is starting the communication, then you will also need to add the personal certificate of QM1 to the key database of QM2 and before that add all the root certificates to the QM2 key database (which you already did).
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