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 Security » SSL working one way, not the other...

Post new topic  Reply to topic
 SSL working one way, not the other... « View previous topic :: View next topic » 
Author Message
flaufer
PostPosted: Thu Sep 29, 2011 11:47 pm    Post subject: SSL working one way, not the other... Reply with quote

Acolyte

Joined: 08 Dec 2004
Posts: 59

Folks,

Im at the end of my (prossibly restricted) wisdome here...

Setup:

Two queuemanagers. One Windows, One Linux.
Two Pair of channels (SDR-RCVR). working fine without SSL.

creating queue manager certificates (witht he proper label). have them signed by their respective CAs (different CAs for each site because different companies) and imported them into the QMGR keystores.

import both of the root CA certificate in both queuemanagers (on our side because we have our own qmgr certificate signed by it, on the peer side to allow the peer to check our certificate which MQ will send during SSL initialization and vice versa).

Now the funny thing.

SDR(Linux) to RCVR(Windows) is working fine. Including SSLPEER setting. CIPHERSPECs have been defined identical. Channel starts. fine.

SDR(Windows) to RCVR(Linux) will not come up. SSLPEER left empty as long as we haven't made it work. CIPHERSPEC identical (check multiple times). SDR goes into retrying and on both ends, we receive AMQ9633.
SSLCAUTH setting does not change the situation (was REQUIRED, changed to OPTIONAL).

I'm out of options... these were my thouoghts.

a. Why would a certificate not be "valid", if we already have a connection running in the other direction using SSL? My understanding is, that for message channels, both server and client authentification are done which means that both the client (running the SDR channel) and the server (running the RCVR channel) will try to validate the peer certificates. We also successfully have used SSLPEER settings on both ends which is more hint into the direction that nothing SHOULD be wrong with the certificates.

b. we have (since we migrated to MQ7 on the linux qmgr, which is our gateway and also hosts a larger number (~15) SSL channels, disabled the OCSPCheckExtensions, so no OCSP issue here either. We also do not check against any CRL.

Maybe I'm msising soemthing strange here... this is not the first channel I have setup using SSL....

Any lead or input much appreciated :)

Thanks,
Felix
Back to top
View user's profile Send private message
flaufer
PostPosted: Fri Sep 30, 2011 12:01 am    Post subject: Re: SSL working one way, not the other... Reply with quote

Acolyte

Joined: 08 Dec 2004
Posts: 59

flaufer wrote:
Folks,

Im at the end of my (prossibly restricted) wisdome here...

Setup:

Two queuemanagers. One Windows, One Linux.
Two Pair of channels (SDR-RCVR). working fine without SSL.

creating queue manager certificates (witht he proper label). have them signed by their respective CAs (different CAs for each site because different companies) and imported them into the QMGR keystores.

import both of the root CA certificate in both queuemanagers (on our side because we have our own qmgr certificate signed by it, on the peer side to allow the peer to check our certificate which MQ will send during SSL initialization and vice versa).

Now the funny thing.

SDR(Linux) to RCVR(Windows) is working fine. Including SSLPEER setting. CIPHERSPECs have been defined identical. Channel starts. fine.

SDR(Windows) to RCVR(Linux) will not come up. SSLPEER left empty as long as we haven't made it work. CIPHERSPEC identical (check multiple times). SDR goes into retrying and on both ends, we receive AMQ9633.
SSLCAUTH setting does not change the situation (was REQUIRED, changed to OPTIONAL).

I'm out of options... these were my thouoghts.

a. Why would a certificate not be "valid", if we already have a connection running in the other direction using SSL? My understanding is, that for message channels, both server and client authentification are done which means that both the client (running the SDR channel) and the server (running the RCVR channel) will try to validate the peer certificates. We also successfully have used SSLPEER settings on both ends which is more hint into the direction that nothing SHOULD be wrong with the certificates.

b. we have (since we migrated to MQ7 on the linux qmgr, which is our gateway and also hosts a larger number (~15) SSL channels, disabled the OCSPCheckExtensions, so no OCSP issue here either. We also do not check against any CRL.

Maybe I'm msising soemthing strange here... this is not the first channel I have setup using SSL....

Any lead or input much appreciated :)

Thanks,
Felix


Alright.... I need to admit that, after restarting the Qmgr on the Linux side (our receiver), the channel came up fine... (still SSLCAUTH optional and no SSLPEER, but CHSTATUS shows short peer name and signer certificate on our side)... but I just don't understand it.
Back to top
View user's profile Send private message
flaufer
PostPosted: Fri Sep 30, 2011 1:35 am    Post subject: Re: SSL working one way, not the other... Reply with quote

Acolyte

Joined: 08 Dec 2004
Posts: 59

flaufer wrote:

Alright.... I need to admit that, after restarting the Qmgr on the Linux side (our receiver), the channel came up fine... (still SSLCAUTH optional and no SSLPEER, but CHSTATUS shows short peer name and signer certificate on our side)... but I just don't understand it.


Again me... just setup the same thing in our production environment with the same effect... same error.

Linux (7.0.1.5) to Win (7.0.1.3) working fine.
Win (7.0.1.3) to Linux (7.0.1.5) retrying and we will have to find an outage window to restart the QM...

Very peculiar.

Felix
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 30, 2011 1:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

refresh security type(SSL)?
Back to top
View user's profile Send private message
flaufer
PostPosted: Fri Sep 30, 2011 2:31 am    Post subject: refresh security didn't help Reply with quote

Acolyte

Joined: 08 Dec 2004
Posts: 59

Jeff,

mqjeff wrote:
refresh security type(SSL)?


We did it and it did not help.

Also it is unclear to me, how this could have help since the channel in the one direction was already running (and also should have seen - or not seen - the certificates the same way).

Felix

P.S. some colleagues mentioned that this was a known workaround around here for SSL... for exactly these situations... couldn't believe it until I had the same experience. But I want to understand what went wrong because imho a QMGR restart is something I wouldn't want just for putting SSL on a channel.
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 Security » SSL working one way, not the other...
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.