title: .NET client connecting to IBM MQ over SSL
body: <p>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: </p>
  
  <pre>
  xxx.crl 
  xxx.kdb 
  xxx.rdb 
  xxx.sth 
  xxx.tab 
  </pre>
  
  <p>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". </p>
  
  <p>Code: </p>
  
  <pre><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(); 
  </code></pre>
  
  <p>Error I am getting:</p>
  
  <blockquote>
    <p>Message = "MQRC_Q_MGR_NAME_ERROR" </p>
  </blockquote>
  
  <p>I also tried telneting the server which I am able to do. </p>
  
  <p>Can some help me what is wrong I am doing here and why I am getting this error.</p>