Reputation: 186
I need to connect to IBM MQ on cloud which is SSL enabled with mutual authentication from NodeJS. Because of some restrictions at MQ side I am unable to connect to this IBM MQ using Native keydb approach. When i try to connect i get error. My client confirmed that I wont be able to connect to MQ using keydb(native approach)
MQ call failed in CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_HOST_NOT_AVAILABLE [2538]
I saw official documentation of ibmmq node library which mentions that MQI based client like Node, Python etc needs to use keydb. I am able to connect to this IBM MQ using Java (Keystore).
I would like to know if there is a way to connect to IBM MQ from NodeJS using keystore which i used to connect from Java.
Upvotes: 1
Views: 1352
Reputation: 10672
You can't directly use the jks file with the ibmmq node library.
You can convert the jks to a kdb using these commands:
runmqckm -keydb -convert -db key.jks -new_format kdb
runmqckm -keydb -stashpw -db key.kdb
The first command will create two files:
key.kdb
key.rdb
The second command will create the stash file:
key.sth
Both commands will prompt you for the jks password.
Upvotes: 2