2017-10-04 63 views
0

获取Ciphersuit错误下面是我调试模式日志:因为这个错误,我无法运行我的应用程序的在自由服务器

enter code here 

Is initial handshake: true 
main, setSoTimeout(0) called 
Ignoring unsupported cipher suite: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_RSA_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_ECDH_RSA_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_DHE_RSA_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_DHE_DSS_WITH_AES_128_CBC_SHA256 
Ignoring unsupported cipher suite: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_RSA_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDH_RSA_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_DHE_RSA_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_DHE_DSS_WITH_AES_128_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDHE_ECDSA_WITH_RC4_128_SHA 
Ignoring unsupported cipher suite: SSL_ECDHE_RSA_WITH_RC4_128_SHA 
Ignoring unsupported cipher suite: SSL_ECDH_ECDSA_WITH_RC4_128_SHA 
Ignoring unsupported cipher suite: SSL_ECDH_RSA_WITH_RC4_128_SHA 
Ignoring unsupported cipher suite: SSL_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA 
Ignoring unsupported cipher suite: SSL_ECDH_RSA_WITH_3DES_EDE_CBC_SHA 
%% No cached client session 
*** ClientHello, SSLv3 
RandomCookie: GMT: 1490319829 bytes = { 83, 197, 91, 220, 29, 11, 103, 125, 151, 197, 221, 194, 108, 99, 155, 171, 151, 221, 122, 4, 193, 146, 218, 167, 165, 11, 84, 55 } 
Session ID: {} 
Cipher Suites: [TLS_EMPTY_RENEGOTIATION_INFO_SCSV, SSL_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_RC4_128_MD5] 
Compression Methods: { 0 } 
*** 
main, WRITE: SSLv3 Handshake, length = 55 
main, received EOFException: error 
main, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake 
main, SEND TLSv1 ALERT: fatal, description = handshake_failure 
main, WRITE: TLSv1 Alert, length = 2 
main, called closeSocket() 
main, called close() 
main, called closeInternal(true) 
java.lang.Exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake in class com.fdc.to.net.http.HttpsComHandler 

。 请帮我解决这个问题。 我正在使用IBMJSSE2 1.7罐子

+0

你的java -fullversion输出是什么?你为什么引用特定的IBMJSSE jar? – covener

+0

确保JVM支持SSLv3协议。并支持RC4和3DES密码。大多数怨恨的JVM将拥有所有禁用的内容。 – Alaine

回答

0

在server.xml文件的ssl标签中添加enabledCiphers =“SSL_RSA_WITH_RC4_128_SHA”属性解决此问题。

<ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="defaultTrustStore" 
    clientAuthenticationSupported="true" enabledCiphers="SSL_RSA_WITH_RC4_128_SHA"/> 
+0

这是一个相对较弱的密码。我不会在这个问题上关闭这本书。 – covener