title: MQQueueManager.<init> raises MQJE001: Completion Code '2', Reason '2400' for specified MQEnvironment.sslCipherSuite
body: <p>When creating MQQueueManager object with following sslCipherSuite:</p>
  
  <pre><code>MQEnvironment.sslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA";
  MQEnvironment.hostname = host;
  MQEnvironment.channel  = channel;
  MQEnvironment.port = port;
  iMQQueueManager = new MQQueueManager(queueMgr);
  </code></pre>
  
  <p>it manager init raises: </p>
  
  <blockquote>
    <p>MQJE001: Completion Code '2', Reason '2400'</p>
  </blockquote>
  
  <p>which should means " JSSE reported that it does not support the CipherSuite specified by the application" (<a href="http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.tro.doc/q044280_.htm" rel="nofollow">http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.tro.doc/q044280_.htm</a>)</p>
  
  <p>I've configured my Queue Manager -> Channels (Properties) -> SSL -> CipherSpec to: TLS_RSA_WITH_AES_128_CBC_SHA (TLS 1.0, Secure Hash Algorithm, 128-bit AES encryption).</p>
  
  <p>used platform is:</p>
  
  <pre><code>JAVA 7 (1.7.0_75-b13) 
  MQ 7.1 client libs (7.1.0.6-k710-006-141112)
  MQ 8.0 server (8.0.0.5)
  </code></pre>
  
  <p>here is the stack detail:</p>
  
  <pre><code>Exception in thread "main" com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2400'.
      at com.ibm.mq.MQManagedConnectionJ11.constructMQCD(MQManagedConnectionJ11.java:1434)
      at com.ibm.mq.MQManagedConnectionJ11.constructCNO(MQManagedConnectionJ11.java:1537)
      at com.ibm.mq.MQManagedConnectionJ11.&lt;init&gt;(MQManagedConnectionJ11.java:233)
      at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:588)
      at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:630)
      at com.ibm.mq.StoredManagedConnection.&lt;init&gt;(StoredManagedConnection.java:107)
      at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:205)
      at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:911)
      at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:799)
      at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:750)
      at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:157)
      at com.ibm.mq.MQQueueManager.&lt;init&gt;(MQQueueManager.java:681)
  </code></pre>
  
  <p>I guess the issue is on MQ configuration side, due the fact that my jre</p>
  
  <pre><code>SSLContext.getInstance("TLS")
  .init(null, trustAllCerts, new SecureRandom())
  .getSupportedSSLParameters()
  .getCipherSuites()
  </code></pre>
  
  <p>returns "TLS_RSA_WITH_AES_128_CBC_SHA" as one of CipherSuites. But I'm not sure what's exactly wrong on QMgr configuration. Thanks for any hints.</p>