大家好,我得到一个例外“收到致命警报:handshake_failure”。
我的环境:
JDK: jdk1.7.0_80
weblogic:10.3.6
axsi:1.4
我的所作所为:
1. add certificate to truststore.
2.install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7.
3.set start Arguments:
-Dweblogic.security.SSL.protocolVersion=TLS1
-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1.2
-Djavax.net.debug=ssl
(and I have enable JSSE SSL)
4. set TLS1.2 in code where have use axis
context = SSLContext.getInstance("TLSv1.2");
context.init(null, null, null);
HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
现在它alaways显示“handshake_failure”异常。 在日志文件中,我找到了以下信息。我猜TSL1.2没有启用。但在其他请求中,它使用了TLS1.2。 你有什么想法?
Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256
Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256
Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256