我在Tomcat 8.5.8中有一個應用程序。我在Tomcat服務器前有Apache 2.4 webserver。我用ssl TLS1.2和ciphursuite配置了Apache:SSLCipherSuite「HIGH:!aNULL:!MD5:!3DES:!CAMELLIA:!AES128」。無法將httpsUrlConnection創建爲servlet握手異常
現在,當我試圖讓HttpsURLConnection的調用這個servlet在我的應用程序,它拋出以下異常:
javax.net.ssl.SSLHandshakeException:收到致命警報: handshake_failure
我在想,理想情況下httpsurlconnection代碼不應特別啓用任何ciphursuites。請給我方向。
我使用的是JDK 1.8。
可能重複[收到致命警報:握手\ _failure通過SSLHandshakeException](http://stackoverflow.com/questions/6353849/received-fatal-alert-handshake-failure-through-sslhandshakeexception) – Akshay
特別是看到的答案由heez和Simon Yu提供,因爲您的Apache配置只允許使用AES-256和Oracle Java的密碼套件默認不支持256位加密(儘管OpenJDK的確如此,至少在我嘗試過的版本中)。 –