title: IBM MQ call failed with comp code '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED') from spring boot
body: <p><strong>we are using spring boot to send a message to ibm mq manager on a remote server, and for Authentication we use SSL certificate + we use cipher suite to cipher data</strong></p>
  <p><strong>Question</strong>:  why we get this error although we not use credentials for authentication and we use ssl instead  ?</p>
  <p>the code is simple , this in method in the main application spring boot class</p>
  <pre><code> @PostConstruct
          public void listen() { 
            System.setProperty(&quot;javax.net.debug&quot;, &quot;true&quot;);
            System.setProperty(&quot;javax.net.ssl.trustStore&quot;, sslkeyr );
              System.setProperty(&quot;javax.net.ssl.keyStore&quot;, sslkeyr );
              System.setProperty(&quot;javax.net.ssl.keyStorePassword&quot;, sslpass );
              System.setProperty(&quot;com.ibm.mq.cfg.useIBMCipherMappings&quot;, &quot;false&quot;);
              System.setProperty(&quot;jdk.security.allowNonCaAnchor&quot;, &quot;true&quot; );
            System.out.println(&quot;start sending message ....&quot;);
              //ProducerService producerService=new ProducerService();
              producerService.sendMessage();
              
              System.out.println(&quot;start sending message sent success ....&quot;);
          }
  </code></pre>
  <p>-and this is the properties file</p>
  <pre><code> server.ssl.key-store=/home/user/file.jks
      server.ssl.key-store-password=pass
      server.ssl.key-store-type=JKS
      
      jdk.security.allowNonCaAnchor=true
      
      ibm.mq.queueManager=qmName
      ibm.mq.channel=channel
      ibm.mq.connName=ip(port)
      ibm.mq.sslCipherSuite=TLS_RSA_WITH_AES_256_CBC_SHA256
  </code></pre>
  <p>Hint : i used ibm sample code ( <a href="https://github.com/ibm-messaging/mq-tls-ssl-wizard/blob/master/com.ibm.mq.ssl-wizard/src/tlswizard/samples/SSLSampleJMS.java" rel="nofollow noreferrer">https://github.com/ibm-messaging/mq-tls-ssl-wizard/blob/master/com.ibm.mq.ssl-wizard/src/tlswizard/samples/SSLSampleJMS.java</a>)with the same properties, configuration and jks file
  to send message (but not spring boot app) and successfully message sent and received by the MQ but the problem appear when we used spring boot</p>