Closed prashanthmadduri closed 3 years ago
See the MQ documentation about this return code. The underlying MQ client layer (and the TLS package underpinning that) has a process-wide TLS stack. Once initialised, the keystore configuration cannot be changed until all existing connections have been ended.
There's unfortunately nothing that can be done at the level of this package's NodeJS wrapper to override that.
An RFE was recently raised that asks for changes in this area but I am not optimistic that it would be implemented any time soon.
Closing this as it's not something that can be dealt with in this package.
Please include the following information in your ticket.
mq-mqi-nodejs version(s): ibmmq@0.9.17
Below is the scenario for error:
gsk8capicmd_64 -cert -import -target key.kdb -db <<path to personal certficate>> -target_type cms -type pkcs12 -label <<label>> -target_pw <<key repo password>> -pw <<cert password>>
b. Create connection to queue of Queue Manager namedOM_QMGR
c. Store the connection for future use for same user accountWe are getting SSL_INITIALIZATION_ERROR between two connections when HOST is different and remaining all other connection parameters like PORT, CHANNEL, QMGR, CIPHER are same.
A small code sample that demonstrates the issue.
if (MQDetails.KEY_REPOSITORY) { debug_info('SCO object to locate key repository for TLS'); console.log('SCO object to locate key repository for TLS'); // For TLS let sco = new mq.MQSCO();
}
//below is the connection creation mq.Connx(MQDetails.QMGR, cno, function(err, hConn) { if (err) { debug_warn('Error Detected making Connection', err); } else { debug_info("MQCONN to %s successful ", MQDetails.QMGR); } });
{"message":"CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_SSL_INITIALIZATION_ERROR [2393]","stack":"MQError: CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_SSL_INITIALIZATION_ERROR [2393]\n at /root/node_modules/ibmmq/lib/mqi.js:776:17\n at Object. (/root/node_modules/ffi-napi/lib/_foreign_function.js:115:9)","name":"MQError","mqcc":2,"mqccstr":"MQCC_FAILED","mqrc":2393,"mqrcstr":"MQRC_SSL_INITIALIZATION_ERROR","version":"0.9.17","verb":"CONNX"}