.NET client connecting to IBM MQ over SSL
- by user171523
I got key files from our client where I need to use them to connect to MQ over SSL. The files we have got from client are:
xxx.crl
xxx.kdb
xxx.rdb
xxx.sth
xxx.tab
They said client channel table in that. I am trying to connect using the below code. And they are saying I don't need to specify the Queue Manager it will be defined in the Client Channel Table. But one thing is they have done while created key with the using "user1".
Code:
Hashtable connectionProperties = new Hashtable();
// Add the connection type
connectionProperties.Add(MQC.TRANSPORT_PROPERTY, connectionType);
MQQueueManager qMgr;
MQEnvironment.SSLCipherSpec = "TRIPLE_DES_SHA_US";
MQEnvironment.SSLKeyRepository = @"D:\Cert\BB\key";
MQEnvironment.UserId = "user1";
MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY, connectionType);
qMgr = new MQQueueManager();
Error I am getting:
Message = "MQRC_Q_MGR_NAME_ERROR"
I also tried telneting the server which I am able to do.
Can some help me what is wrong I am doing here and why I am getting this error.