Author |
Message
|
tnana |
Posted: Wed Sep 29, 2010 8:20 am Post subject: One way SSL Issue (Channel is lacking a certificate) |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
Although we want to implement 2 way SSL connection, we were trying 1 way first.
So far,
Created Key database on server (MQ 6 on Linux)
Added Queue Manager cert (label = ibmwebspheremqqm1)
Added CA Certificate (label = NY_MQ_CA_CERT)
Created Key database on Client (MQ 6 on W2K3)
Created channel pair on server
Extracted CA Cert on server
Exported Channel Table and CA Cert to client (using PSFTP)
Added CA cert on Client's Key DB
Channel are defined as:
DEFINE CHANNEL(E.G) CHLTYPE(CLNTCONN) TRPTYPE(TCP) MAXMSGL(4194304) CONNAME('xxx(4515)') QMNAME(QM1) SSLCIPH('TRIPLE_DES_SHA_US')
DEFINE CHANNEL(E.G) CHLTYPE(SVRCONN) TRPTYPE(TCP) MAXMSGL(4194304) SSLCIPH('TRIPLE_DES_SHA_US') SSLCAUTH(OPTIONAL)
Client is using VBScript and MQAX200
We keep getting this error:
ErrorNumber: 32000
ErrorDescription: MQAX200.MQQueueManager::Connect CompletionCode = 2, ReasonCode = 2059, ReasonName = MQRC_Q_MGR_NOT_AVAILABLE
Started trace on both Client and Server.
Both traces have entries for (rc=xecE_E_ENV_VAR_NOT_FOUND) although client process has MQCHLTAB, MQCHLLIB and MQSSLKEYR defined.
In Client trace, there is also mention of
(rc=xecU_W_KEY_NOT_FOUND)
QM.INI stanza not found
(rc=xecS_I_ACCESS_DENIED)
Server MQ Error log shows this:
=======================================
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.
=======================================
Although we are attempting one way, the Client trace mentions following:
==============================================
000002F2 12:09:55.004151 6024.1 gsk_attribute_get_cert_by_label: input: gsk_env_handle=0x0003F9D8, key_label=ibmwebspheremqny.test, *cert_data =0x00000000 *cert_elem_count = 0
000002F3 12:09:55.004262 6024.1 ----------{ xcsCheckPointer
000002F4 12:09:55.004309 6024.1 ----------}! xcsCheckPointer (rc=xecS_I_ACCESS_DENIED)
000002F5 12:09:55.004343 6024.1 gsk_attribute_get_cert_by_label: output: gsk_env_handle=0x0003F9D8, key_label=ibmwebspheremqny.test, *cert_data=0x00000000, *cert_elem_count=0
000002F6 12:09:55.004373 6024.1 ---------}! ccigsk_get_cert_by_label (rc=Unknown(197))
===============================================
"ny.test" is the Windows domain account under which Client is running.
 |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 29, 2010 8:32 am Post subject: Re: One way SSL Issue (Channel is lacking a certificate) |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
tnana wrote: |
Client is using VBScript and MQAX200 |
Yikes.
tnana wrote: |
We keep getting this error:
ErrorNumber: 32000
ErrorDescription: MQAX200.MQQueueManager::Connect CompletionCode = 2, ReasonCode = 2059, ReasonName = MQRC_Q_MGR_NOT_AVAILABLE
|
Do you get the same error if SSL is not in use?
tnana wrote: |
Both traces have entries for (rc=xecE_E_ENV_VAR_NOT_FOUND) although client process has MQCHLTAB, MQCHLLIB and MQSSLKEYR defined. |
Are these defined in the shell in which the script is running? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
tnana |
Posted: Wed Sep 29, 2010 9:17 am Post subject: Re: One way SSL Issue (Channel is lacking a certificate) |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
Vitor wrote: |
tnana wrote: |
Client is using VBScript and MQAX200 |
Yikes.
tnana wrote: |
We keep getting this error:
ErrorNumber: 32000
ErrorDescription: MQAX200.MQQueueManager::Connect CompletionCode = 2, ReasonCode = 2059, ReasonName = MQRC_Q_MGR_NOT_AVAILABLE
|
Do you get the same error if SSL is not in use?
tnana wrote: |
Both traces have entries for (rc=xecE_E_ENV_VAR_NOT_FOUND) although client process has MQCHLTAB, MQCHLLIB and MQSSLKEYR defined. |
Are these defined in the shell in which the script is running? |
Works fine without SSL using Channel table.
The environment variables are indeed defined in the shell. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 29, 2010 9:34 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Did you confirm that the user running the script has OS level file permissions to the keystore and it's containing directories? |
|
Back to top |
|
 |
tnana |
Posted: Wed Sep 29, 2010 9:42 am Post subject: |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
mqjeff wrote: |
Did you confirm that the user running the script has OS level file permissions to the keystore and it's containing directories? |
Yes.
The keystore was created when logged in as "ny.test".
It is in local Administrator group.
We even tested by specifying wrong location of ketstore by modifying SSLKEYR to a dummy value. That time we got MQRC_KEY_REPOSITORY_ERROR |
|
Back to top |
|
 |
tnana |
Posted: Wed Sep 29, 2010 1:06 pm Post subject: Re: One way SSL Issue (Channel is lacking a certificate) |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
tnana wrote: |
Added Queue Manager cert (label = ibmwebspheremqqm1)
|
We used wrong way to add this.
Converted received p12 cert to CER version and then added it.
Later used original p12 version and IMPORTED it.
That solved the problem.
 |
|
Back to top |
|
 |
tnana |
Posted: Thu Sep 30, 2010 9:34 am Post subject: Re: One way SSL Issue (Channel is lacking a certificate) |
|
|
Novice
Joined: 06 Oct 2004 Posts: 14
|
tnana wrote: |
tnana wrote: |
Added Queue Manager cert (label = ibmwebspheremqqm1)
|
We used wrong way to add this.
Converted received p12 cert to CER version and then added it.
Later used original p12 version and IMPORTED it.
That solved the problem.
 |
Just out of curiosity,
Attempted to ADD the CER file again with different label. Received error "A duplicate certificate already exists in the database."
Then extracted details of working certificate and deleted it.
Added the CER version again and extracted the details.
Both details were IDENTICAL. |
|
Back to top |
|
 |
|