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 IndexIBM MQ SecurityMQCONNX fails with AMQ9518 (MQRC 2059)

Post new topicReply to topic
MQCONNX fails with AMQ9518 (MQRC 2059) View previous topic :: View next topic
Author Message
rockz007
PostPosted: Sun Sep 24, 2017 11:15 pm Post subject: MQCONNX fails with AMQ9518 (MQRC 2059) Reply with quote

Newbie

Joined: 20 Aug 2015
Posts: 9

Hi All,

We are on AS400 MQ Client, MQ server is on another machine. I'm trying to connect to server using MQCONNX with SSL, I get the below error

"/QIBM/UserData/mqm/AMQCLCHL.TAB" -> AMQ9518


Code to call MQCONNX with SSL option:

MOVE 'XXX' TO PUT-QUEUE-MANAGER
MOVE 'X123' TO MQCD-CHANNELNAME
MOVE 1.1.1.1' TO MQCD-CONNECTIONNAME
MOVE KEY-LOC TO MQSCO-KEYREPOSITORY
MOVE CIPHER-SPEC TO MQCD-SSLCIPHERSPEC
MOVE 5 TO MQCNO-VERSION.
MOVE 10 TO MQCD-VERSION.
MOVE MQCHT-CLNTCONN TO MQCD-CHANNELTYPE.
*** BINARY VALUE SET TO 6 FOR MQCHT-CLNTCONN
MOVE MQXPT-TCP TO MQCD-TRANSPORTTYPE.
**** Binary value set to 2 for MQXPT-TCP
MOVE 1 TO MQSCO-VERSION.
SET MQCNO-CLIENTCONNPTR TO ADDRESS OF MQCDOPTIONS.

CALL "MQCONNX"
USING PUT-QUEUE-MANAGER, CNOPTIONSMAIN, HCONN,
COMPLETION-CODE, REASON.
Back to top
View user's profile Send private message
rockz007
PostPosted: Sun Sep 24, 2017 11:17 pm Post subject: Reply with quote

Newbie

Joined: 20 Aug 2015
Posts: 9

Error message is "File '/QIBM/UserData/mqm/AMQCLCHL.TAB' not found. " -AMQ9518

When I try to connect with AMQSSSLC sample program with same options, the connection is successful , but when doing in a program with MQCONNX I get the error
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Sep 25, 2017 2:29 am Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5669
Location: UK

Connection name needs to be valid IP address (preferably) or IP number with the port.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
rockz007
PostPosted: Mon Sep 25, 2017 2:35 am Post subject: Reply with quote

Newbie

Joined: 20 Aug 2015
Posts: 9

I did specify valid IP address along with PORT, I just excluded during the post only.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 25, 2017 4:20 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm not an iSeries guy, but there is a note here
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.ref.dev.doc/q101770_.htm

"On IBM i, this call is not supported for applications running in compatibility mode."

I also don't see where you specify either the SSLConfigOffset or the SSLConfigPtr

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.ref.dev.doc/q095520_.htm

But maybe I'm just missing it.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
rockz007
PostPosted: Mon Sep 25, 2017 5:08 pm Post subject: Reply with quote

Newbie

Joined: 20 Aug 2015
Posts: 9

I have modified the code and MQCNO-VERSION to be '4' for SSL values to be taken

MOVE 4 TO MQCNO-VERSION.
MOVE 10 TO MQCD-VERSION.
MOVE MQCHT-CLNTCONN TO MQCD-CHANNELTYPE.
MOVE MQXPT-TCP TO MQCD-TRANSPORTTYPE.

MOVE 1 TO MQSCO-VERSION.
SET MQCNO-CLIENTCONNPTR TO ADDRESS OF MQCDOPTIONS.
SET MQCNO-SSLCONFIGPTR TO ADDRESS OF MQSCO.


MOVE W-ENQ-REQ TO GET-QUEUE.

CALL "MQCONNX"
USING PUT-QUEUE-MANAGER, CNOPTIONSMAIN, HCONN,
COMPLETION-CODE, REASON.


Now I'm receiving MQRC 2071 error

AMQ6037: WebSphere MQ was unable to obtain enough storage.

When I try to connect without SSL this error doesn't show up, only when I try to use SSL I get this error.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 26, 2017 3:16 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Again, check first that your program is not running in compatibility mode, whatever that is.

And there might be a sample program that comes with an MQCONNX.

You could look at the code for saveqgmr or MA7K (use the versions in ibm-messaging github)... But the parts that go into the MQCONNX in those are kind of spread out.

Maybe if you find really old versions of those, before SSL was available (I think that was introduced in mq v6? ) , you could do some kind of diff.

But the only place to get those versions, if they are still available, is either through some kind of internet archive, or through the very old supportpac ftp server...
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ SecurityMQCONNX fails with AMQ9518 (MQRC 2059)
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.