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 » Possible to use keystore cert with AMQSSSLC command?

Post new topic  Reply to topic
 Possible to use keystore cert with AMQSSSLC command? « View previous topic :: View next topic » 
Author Message
codeguy03
PostPosted: Sat Jun 05, 2021 9:50 am    Post subject: Possible to use keystore cert with AMQSSSLC command? Reply with quote

Newbie

Joined: 05 Jun 2021
Posts: 6

I am trying to test out my ssl connection before I get into working with .Net dll for MQ.

I have a key.kdb file and it works but our standard is to only use a a certificate from the windows keystore. My friendly name is ibmwebspheremqmyloginid


When I run this command it doesn't work. I get a 2393 code

AMQSSSLC -m QM1 -c QM1SVRCONN -x localhost
-k "*SYSTEM" -s TLS_RSA_WITH_AES_128_CBC_SHA256
-o http://dummy.OCSP.responder


This does work with the actual kdb file. I get connection successful

AMQSSSLC -m QM1 -c QM1SVRCONN -x localhost
-k "C:\certs\key" -s TLS_RSA_WITH_AES_128_CBC_SHA256
-o http://dummy.OCSP.responder


Last edited by codeguy03 on Sat Jun 05, 2021 8:40 pm; edited 2 times in total
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Jun 05, 2021 4:14 pm    Post subject: Re: Possible to use keystore cert with AMQSSSLC command? Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

codeguy03 wrote:
When I run this command it doesn't work

AMQSSSLC ... -k *SYSTEM ...

Insufficient information for us to help you.

What makes you believe that it didn’t work? No response whatsoever? Some kind of error message?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
codeguy03
PostPosted: Sat Jun 05, 2021 8:35 pm    Post subject: Re: Possible to use keystore cert with AMQSSSLC command? Reply with quote

Newbie

Joined: 05 Jun 2021
Posts: 6

bruce2359 wrote:
codeguy03 wrote:
When I run this command it doesn't work

AMQSSSLC ... -k *SYSTEM ...

Insufficient information for us to help you.

What makes you believe that it didn’t work? No response whatsoever? Some kind of error message?


Hi so the one that does work using the local kdb file, i get a connection successful.


The one that tries to use the certificate in the windows keystore with the *SYSTEM flag, gives me and error 2393. MQRC_SSL_INITIALIZATION_ERROR.


So im really not sure if that flag is correct.

If anyone is able to use amqssslc command with a certificate from the windows keystore please let me know or if possible please post the correct syntax for it if you can.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Jun 06, 2021 12:21 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

What documentation are you following for running the amqssslc supplied application?

What error did you find in the MQ error log file on the client?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
hughson
PostPosted: Sun Jun 06, 2021 5:51 pm    Post subject: Re: Possible to use keystore cert with AMQSSSLC command? Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

codeguy03 wrote:
I am trying to test out my ssl connection before I get into working with .Net dll for MQ.


The IBM Supplied amqssslc sample is written in C. To use certificates with the IBM MQ C Client, you must use a kdb. This is why amqssslc works with a kdb but not with a *SYSTEM store. If you look at the supplied code for the sample, you will see that the value provided in the -k parameter MUST be a path and file name (without stem) of a kdb file. This means that the string you are providing "*SYSTEM" is being interpreted as a KDB called ".\*SYSTEM.kdb" and clearly that doesn't exist on your system. It is not interpreting it as "Use the System" store because that behaviour is only available in .Net.

If you are wanting to test your SSL connection before you write a .Net application, you would need to find a .NET sample, not a C sample.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Possible to use keystore cert with AMQSSSLC command?
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.