I am getting the exception MQRC_SSL_INITIALIZATION_ERROR while connecting to MQ in asp.net with c#. I am using IBM MQ Client (9.1.3) I am using amqmdnet dll (9.1.3) for the MQ connectivity. I am connecting on Windows Server 2019.
Below are the MQ configuration details and connectivity code written: Awaiting a response at the earliest
<add key="MQ_MANAGER" value="HBAX013D"/>
<add key="MQ_CHANNEL" value="DDS.SVR.CONN.SSL.CHL"/>
<add key="MQ_CONNECTION" value="10.10.182.37(1514)"/>
<add key="MQ_REPLY" value="DDS.REPLY"/>
<add key="MQ_REQUEST" value="GEN.DISPATCHER.REQ"/>
<add key="SSL_ALGORITHM" value="RC4_SHA_US"/>
<add key="SSL_KEYLOCATION" value="C:\WMQClient\SSL\key12\key"/>
try
{
if (chkSSLEnbled.Checked == true)
{
MQEnvironment.SSLCipherSpec = txtCipherSpec.Text;
MQEnvironment.SSLKeyRepository = txtKeyRepository.Text;
}
objMQQueueManager = new IBM.WMQ.MQQueueManager(txtMqManager.Text, txtMQChannel.Text, txtMqConnection.Text);
objMQQueue = objMQQueueManager.AccessQueue(txtMQName.Text, MQC.MQOO_INQUIRE | MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_SET_IDENTITY_CONTEXT);
//WriteLog("writeMessage: Connected to DDS MQ MAnager..", false);
}
catch (Exception ex)
{
txtLog.Text += "btnConnect_Click()-MQ Connectivity Process Failed with Exception: " + ex.Message
+ Environment.NewLine + " with Inner Exception:" + ex.InnerException
+ Environment.NewLine + " at Stack Trace: " + ex.StackTrace + Environment.NewLine;
}
}
------------------------------
Alex Junior
------------------------------