java WebSphere MQ 调用失败,compcode '2' ('MQCC_FAILED') 原因 '2397' ('MQRC_JSSE_ERROR')
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43251940/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2397' ('MQRC_JSSE_ERROR')
提问by Venkateswarasantosh Koka
I was using Java 6 to connect to IBM MQ. In Java 6 as SSL V3 is not disable we are able to connect to IBM MQ.
我使用 Java 6 连接到 IBM MQ。在 Java 6 中,由于 SSL V3 未禁用,我们能够连接到 IBM MQ。
Now I want to migrate to Java 8 where SSL V3 is in the list of disabled algorithms. which gives me an error "WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2397' ('MQRC_JSSE_ERROR')".
现在我想迁移到 Java 8,其中 SSL V3 在禁用算法列表中。这给了我一个错误"WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2397' ('MQRC_JSSE_ERROR')".
If I remove the SSL V3 from the list of disabled algorithms it works but I do not want to do that. I want TLS to be supported when connecting to IBM MQ. Any help is appreciated.
如果我从禁用算法列表中删除 SSL V3,它可以工作,但我不想这样做。我希望在连接到 IBM MQ 时支持 TLS。任何帮助表示赞赏。
回答by Doug Grove
Please see [1]. You will have to generate the appropriate keys in your keystore/truststore for the desired cipher. You will have to change the desired cipher in your code. From an MDBs activation spec:
请参阅 [1]。您必须在密钥库/信任库中为所需的密码生成适当的密钥。您必须在代码中更改所需的密码。来自 MDB 激活规范:
@ActivationConfigProperty(propertyName = "sslCipherSuite", propertyValue = "SSL_RSA_WITH_3DES_EDE_CBC_SHA"),
In some configuration for your IBM artifacts, you will have "sslCipherSuite". This needs to be set accordingly.
在 IBM 工件的某些配置中,您将拥有“sslCipherSuite”。这需要相应地设置。
[1] https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q113220_.htm
[1] https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q113220_.htm