title: How to configure JBOSS connectivity with Websphere SSL enabled MQ?
body: <p>We are using JBOSS EAP 6.3 maintained via openshift. We want to connect with Websphere MQ which is SSL enabled.</p>
  
  <p>I am successfully able to connect to non-ssl MQ via JBOSS. But while trying to connect with ssl MQ i am facing below error,</p>
  
  <blockquote>
    <p>Blockquote
    Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
            at sun.security.ssl.Handshaker.activate(Handshaker.java:470) [jsse.jar:1.7.0_79]
            at sun.security.ssl.SSLSocketImpl.kickstartHandshake(SSLSocketImpl.java:1438) [jsse.jar:1.7.0_79]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1308) [jsse.jar:1.7.0_79]
            at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) [jsse.jar:1.7.0_79]
            at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343) [jsse.jar:1.7.0_79]
            at com.ibm.mq.jmqi.remote.impl.RemoteTCPConnection$6.run(RemoteTCPConnection.java:1314)
            at com.ibm.mq.jmqi.remote.impl.RemoteTCPConnection$6.run(RemoteTCPConnection.java:1309)
            at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_79]
            at com.ibm.mq.jmqi.remote.impl.RemoteTCPConnection.protocolConnect(RemoteTCPConnection.java:1307)
            ... 26 more</p>
  </blockquote>
  
  <p>I have made required entries in standalone.xml and jboss-ejb3.xml</p>
  
  <p>standalone.xml</p>
  
  <pre><code>    &lt;system-properties&gt;
      &lt;property name="javax.net.ssl.keyStore" value="${env.OPENSHIFT_REPO_DIR}/.openshift/config/mq.jks"/&gt;
      &lt;property name="javax.net.ssl.keyStorePassword" value="password"/&gt;
      &lt;property name="javax.net.ssl.trustStore" value="${env.OPENSHIFT_REPO_DIR}/.openshift/config/mq.jks"/&gt;
      &lt;property name="javax.net.ssl.trustStorePassword" value="password"/&gt;
      &lt;property name="sslCipherSuite" value="SSL_RSA_WITH_3DES_EDE_CBC_SHA"/&gt;
      &lt;property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/&gt;
      &lt;/system-properties&gt;
      &lt;resource-adapter id='wmq.jmsra.rar'&gt;
                  &lt;archive&gt;
                      wmq.jmsra.rar
                  &lt;/archive&gt;
                  &lt;transaction-support&gt;NoTransaction&lt;/transaction-support&gt;
                  &lt;connection-definitions&gt;
                      &lt;connection-definition jndi-name='java:jboss/${env.OPENSHIFT_MQ_CLIENT_CONNECTIONFACTORY_NAME}' class-name='com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl' pool-name='wmq.jmsra.rar_CD'&gt;
                          &lt;config-property name='port'&gt;
                              ${env.OPENSHIFT_MQ_CLIENT_PORT}
                          &lt;/config-property&gt;
                          &lt;config-property name='hostName'&gt;
                              ${env.OPENSHIFT_MQ_CLIENT_HOST_NAME}
                          &lt;/config-property&gt;
                          &lt;config-property name='channel'&gt;
                              ${env.OPENSHIFT_MQ_CLIENT_CHANNEL}
                          &lt;/config-property&gt;
                          &lt;config-property name='transportType'&gt;
                              ${env.OPENSHIFT_MQ_CLIENT_TRANSPORT_TYPE}
                          &lt;/config-property&gt;
                          &lt;config-property name='queueManager'&gt;
                              ${env.OPENSHIFT_MQ_CLIENT_QUEUE_MANAGER}
                          &lt;/config-property&gt;
                          &lt;config-property name='sslCipherSuite'&gt;
                              SSL_RSA_WITH_3DES_EDE_CBC_SHA
                          &lt;/config-property&gt;
                    &lt;/connection-definition&gt;
                  &lt;/connection-definitions&gt;
                  &lt;admin-objects&gt;
                      &lt;admin-object jndi-name='java:jboss/${env.OPENSHIFT_MQ_CLIENT_QUEUE_NAME1}' class-name='com.ibm.mq.connector.outbound.MQQueueProxy' pool-name='BNE_DEV_IN'&gt;
                          &lt;config-property name='baseQueueName'&gt;
                              ${env.OPENSHIFT_MQ_CLIENT_QUEUE_NAME1}
                          &lt;/config-property&gt;
                      &lt;/admin-object&gt;
                  &lt;/admin-objects&gt;
              &lt;/resource-adapter&gt;
  </code></pre>
  
  <p>jboss-ejb3.xml</p>
  
  <pre><code>&lt;activation-config&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;destination&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;QueueName&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;hostName&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;hostName&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;queueManager&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;qmanagerName&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;channel&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;channelName&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;transportType&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;CLIENT&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;destinationType&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;javax.jms.Queue&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;useJNDI&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;false&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;port&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;portNumber&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
              &lt;activation-config-property&gt;
                  &lt;activation-config-property-name&gt;sslCipherSuite&lt;/activation-config-property-name&gt;
                  &lt;activation-config-property-value&gt;SSL_RSA_WITH_3DES_EDE_CBC_SHA&lt;/activation-config-property-value&gt;
              &lt;/activation-config-property&gt;
  </code></pre>
  
  <p> </p>
  
  <p>Can anyone please help me to find what is missing?</p>