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 » mq client connection SSL enabled with .kdb

Post new topic  Reply to topic Goto page Previous  1, 2
 mq client connection SSL enabled with .kdb « View previous topic :: View next topic » 
Author Message
xmqymshr
PostPosted: Fri Jan 15, 2016 9:33 am    Post subject: Reply with quote

Novice

Joined: 13 Jan 2016
Posts: 14

Sorry about that i reread the infocenter and found out there was a key missing in the app.config file to make the application as managed and it worked. But still i get Host_NOT_Available exception on the client side. So i enabled the client trace using 'strmqtrc' and found out the below issues

1) Constructing IBM.WMQ.Nmqi.MQConnectionSpecification#018D94BD MQMBID sn=p800-004-151017 su=_KvDdkHSxEeW7tayg2YKGHQ pn=lib/dotnet/pc/winnt/nmqi/managed/MQConnectionSpecification.cs
00000148 12:23:39.805632 4236.8 Couldnt find a matching connection spec. Adding new one into table

Even after adding the Cipher Spec in the code like this

prop.Add(MQC.SSL_CIPHER_SPEC_PROPERTY, "TLS_RSA_WITH_3DES_EDE_CBC_SHA");

2) Setting current certificate store as 'Computer'
000001B6 12:23:39.868134 4236.8 Created store object to access certificates
000001B7 12:23:39.868134 4236.8 Opened store
000001B8 12:23:39.868134 4236.8 Accessing certificate - ibmwebspheremq(username)


How should i change the lable in the certificate store for the existing certificate

And then it throws the below exception

000001B9 12:23:39.868134 4236.8 TLS12 supported - True
000001BA 12:23:39.868134 4236.8 Setting SslProtol as Tls
000001BB 12:23:39.868134 4236.8 Starting SSL Authentication
000001BC 12:23:39.868134 4236.8 ------------{ MQEncryptedSocket.FixClientCertificate(Object,String,X509CertificateCollection,X509Certificate,String[])
000001BD 12:23:39.868134 4236.8 Client callback has been invoked to find client certificate
000001BE 12:23:39.868134 4236.8 ------------} MQEncryptedSocket.FixClientCertificate(Object,String,X509CertificateCollection,X509Certificate,String[]) rc=OK
000001BF 12:23:40.507601 4236.8 System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm


Please help me
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 15, 2016 6:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Help us help you.
run
Code:
runmqakm -cert -details
or equivalent on the certs both in the server store and in the client store.
This will display the certs and hopefully shed some light on this.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
xmqymshr
PostPosted: Mon Jan 25, 2016 10:26 am    Post subject: Reply with quote

Novice

Joined: 13 Jan 2016
Posts: 14

It was not the certificates mismatch, it was the cipher spec the issue was finally resolved when i used TRIPLE_DES_SHA_US cipher spec.

Thank you all for the help
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 26, 2016 5:19 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

xmqymshr wrote:
It was not the certificates mismatch, it was the cipher spec the issue was finally resolved when i used TRIPLE_DES_SHA_US cipher spec.

Thank you all for the help

You do realize that TRIPLE_DES_SHA_US is SSL V3 and as such not secure.
In order to have a secure communication you need TLS...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Security » mq client connection SSL enabled with .kdb
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.