I am connecting to IBMMQ which has ssl. I am able to connect to this IBM MQ using Java code and using MQ explorer. Now trying to connect using Node . I followed code given here by replacing all required values with the one which I got and then when i execute I get error
D:\IBMMQ\node_modules\ibmmq\lib\mqiutils.js:46
throw new RangeError(errstring);
^
RangeError: Input string is too long for MQI field
at Object.exports.setMQIString (D:\\IBMMQ\node_modules\ibmmq\lib\mqiutils.js:46:13)
at Object.exports._copyCDtoC (D:\\IBMMQ\node_modules\ibmmq\lib\mqcd.js:329:5)
at Object.exports._copyCNOtoC (D:\\IBMMQ\node_modules\ibmmq\lib\mqcno.js:131:21)
at connx (D:\\IBMMQ\node_modules\ibmmq\lib\mqi.js:754:21)
at Object.exports.Connx (D:\\IBMMQ\node_modules\ibmmq\lib\mqi.js:727:3)
at Object.<anonymous> (D:\IBMMQ\TestMQOMS.js:45:4)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
Since it might be string length issue I tried updating my cipher value to just "xyz" but then i see error
MQ call failed in CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_KEY_REPOSITORY_ERROR [2381]
Any idea how i can fix 'RangeError:' .