我的应用程序尝试通过使用单向SSL启用的通道连接到Websphere MQ . 由于连接重置,SSLHandshake失败 . 下面是错误片段和SSL调试日志 .

例外:

Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2397' ('MQRC_JSSE_ERROR')
    Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2397;AMQ9204: Connection to host '()' rejected.
    Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2397;AMQ9771: SSL handshake failed. [1=java.net.SocketException[Connection reset],3=ip-.ec2.internal/:(ip-.ec2.internal),4=SSLSocket.startHandshake,5=default]

SSL日志:

%% No cached client session
    *** ClientHello, TLSv1
    http-nio-8080-exec-1, WRITE: TLSv1 Handshake, length = 88
    Session ID:
    {}
    Cipher Suites: [TLS_RSA_WITH_AES_256_CBC_SHA]
    RandomCookie: GMT: 1488604277 bytes = { 111, 107, 58, 215, 226, 30, 121, 44, 107, 106, 206, 48, 72, 149, 173, 69, 156, 158, 199, 199, 201, 23, 106, 150, 24, 193, 1, 95 }
    Extension server_name, server_name: [type=host_name (0), value=ip-.ec2.internal]
    Extension renegotiation_info, renegotiated_connection: 
    ***
    Compression Methods: { 0 }
    http-nio-8080-exec-1, handling exception: java.net.SocketException: Connection reset
    http-nio-8080-exec-1, SEND TLSv1.2 ALERT: fatal, description = unexpected_message
    http-nio-8080-exec-1, WRITE: TLSv1.2 Alert, length = 2
    http-nio-8080-exec-1, Exception sending alert: java.net.SocketException: Broken pipe
    http-nio-8080-exec-1, called closeSocket()

我不确定这是由于协议还是Ciphersuite问题 . 请建议 .