Bootstrap FreeKB - IBM MQ - Resolve "Reason 2400 MQRC_UNSUPPORTED_CIPHER_SUITE
IBM MQ - Resolve "Reason 2400 MQRC_UNSUPPORTED_CIPHER_SUITE

Updated:   |  IBM MQ articles

Let's say something like this is being returned when attempting to connect to an IBM MQ channel.

compcode '2' ('MQCC_FAILED') reason '2400' ('MQRC_UNSUPPORTED_CIPHER_SUITE')

 

If you have access to the IBM MQ system, the display channel command can be used to determine the cipher being used by the channel.

~]# echo "display channel (CHANNEL01)" | runmqsc MANAGER01
SSLCIPH(TLS_RSA_WITH_AES_256_CBC_SHA256)

 

When making a connection to IBM MQ from a Java application using WMQConstants, here is an example of how you would define the cipher suite.

cf.setStringProperty (WMQConstants.WMQ_SSL_CIPHER_SUITE, "SSL_RSA_WITH_AES_256_CBC_SHA256");

 

When making a connection to IBM MQ from a Java application using MQConstants, here is an example of how you would define the cipher suite.

properties.put(MQConstants.SSL_CIPHER_SUITE_PROPERTY, "SSL_RSA_WITH_AES_256_CBC_SHA256");

 

TLS CipherSpecs and CipherSuites in IBM MQ classes for JMS - IBM Documentation lists the ciphers supported by IBM MQ, and the equivalent cipher that should be used when connecting to IBM MQ.

  • If com.ibm.mq.cfg.useIBMCipherMappings is not being used in the Java application, then the IBM cipher must be used (these are the ciphers beginning with SSL)
  • If com.ibm.mq.cfg.useIBMCipherMappings=true is being used in the Java application, then the IBM cipher must be used (these are the ciphers beginning with SSL)
  • If com.ibm.mq.cfg.useIBMCipherMappings=false is being used, then the Oracle cipher must be used (these are the ciphers beginning with TLS)

 

Here is an example of how you could set the com.ibm.mq.cfg.useIBMCipherMappings property in a Java application.

System.setProperty("com.ibm.mq.cfg.useIBMCipherMappings", "false")

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 2500ec in the box below so that we can be sure you are a human.