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 » Channel is lacking a certificate

Post new topic  Reply to topic Goto page 1, 2  Next
 Channel is lacking a certificate « View previous topic :: View next topic » 
Author Message
edhi
PostPosted: Tue Jan 10, 2006 6:15 am    Post subject: Channel is lacking a certificate Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

When I try to connect from a WinXP MQClient to Solaris MQ Manager over an SSL server connection channel, I get this error message in the unix error log:
"AMQ9637: Channel is lacking a certificate.

EXPLANATION:
The channel is lacking a certificate to use for the SSL handshake. The channel
name is 'MORLC350T_SSL.SCN01' (if '????' it is unknown at this stage in the SSL
processing). The channel did not start."

When I setup the server connection channel WITHOUT client authentication, the connection succeeds.

On the same WinXP PC I also have an MQManager. When I set up an SSL Channel (WITH client authentication) between this MQ Manager and the MQManager on Unix, the connection is also successful. It works in both directions.

In all cases the certificates reside in the same repository.

I think the problem has to do with the client certificate label. I tried several different names for but none works.

I use a modified version of amqscnxc.c.

Any suggestions?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 10, 2006 6:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Does your code know where the client certificate is?

Is your code passing the client certificate?

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzas.doc/su2smc.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
edhi
PostPosted: Tue Jan 10, 2006 6:37 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

Thanks for the reply.

In the source code of amqscnxc.c I inserted this:

MQSCO SecureConn = {MQSCO_DEFAULT};
...

strcpy(SecureConn.KeyRepository, "D:\\Program Files\\IBM\\WebSphere MQ\\Qmgrs\\MORLC350T\\ssl\\key");
Connect_options.SSLConfigPtr = &SecureConn;
Back to top
View user's profile Send private message
edhi
PostPosted: Tue Jan 10, 2006 6:39 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

Thanks for the reply.

In the source code of amqscnxc.c I inserted this:

MQSCO SecureConn = {MQSCO_DEFAULT};
...

strcpy(SecureConn.KeyRepository, "D:\\Program Files\\IBM\\WebSphere MQ\\Qmgrs\\MORLC350T\\ssl\\key");
Connect_options.SSLConfigPtr = &SecureConn;
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 10, 2006 6:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Quote:
I think the problem has to do with the client certificate label. I tried several different names for but none works
What labels did you try? If the userid is "Phred", then the label name should be "ibmwebspheremqphred" ....
EDIT: That applies to MQ V6
_________________
-wayne


Last edited by wschutz on Tue Jan 10, 2006 7:32 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address
edhi
PostPosted: Tue Jan 10, 2006 6:51 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

On the other hand the key database has an .sto extension instead of the .kdb, as suggested in:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzas.doc/su2smc.htm

But for manager-to-manager communication this doesn't seem to be a problem.
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 10, 2006 7:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Are you using MQ V5.3 or MQ V6 on Windows? If its V6, then you need a .kdb file. (which you can migrate from a .sto file using amqtcert).
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
edhi
PostPosted: Tue Jan 10, 2006 7:13 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

Since the test program runs from a debugger, under my userid, I created a label with my userid attached to it (I have been searching around on the internet, so I already found that suggestion), but that didn't work.

I also tried with certificate with label ibmwebspheremqmqm, because the MCA userid of the server connection channel on the unix server (to which I try to connect) is mqm.

Doesn't work either.
On winXP return code is 2393: MQRC_SSL_INITIALIZATION_ERROR[/b]
Back to top
View user's profile Send private message
edhi
PostPosted: Tue Jan 10, 2006 7:15 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

We use MQ V5.3
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 10, 2006 7:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Did you assign the certificate to the MQ client using amqmcert ?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
edhi
PostPosted: Tue Jan 10, 2006 7:56 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

No, I use Websphere MQ Explorer and I access the key repository through the MQ manager that is available on the same machine.

When I execute "amqmcert -k CA -l" or "amqmcert -k ROOT -l" I see the certificates in the list.

Maybe something is wrong with the assignment? Should I use amqmcert for assigning certificates?

It also makes no difference if I use MQSSLKEYR to specify key repository location or if I do this in the source code (SecureConn.KeyRepository="...").
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 10, 2006 7:58 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Does the user that is running the client program have file system access to the key store?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
edhi
PostPosted: Tue Jan 10, 2006 8:06 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

Yes. I run the program in debugger under my userid on my PC. I cheched the security settings of the directory and gave all users as much rights as possible. Although this isn't really advisable for a key store, I suppose.
Back to top
View user's profile Send private message
edhi
PostPosted: Tue Jan 10, 2006 8:07 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2006
Posts: 15

How can I assign the certificate to the client, using amqmcert?
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jan 10, 2006 8:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

edhi wrote:
How can I assign the certificate to the client, using amqmcert?
Its documented in the System Admin guide
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Channel is lacking a certificate
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.