Sahi OS V5.0在应用程序服务器升级到TLS1.1后抛出握手失败异常。使用sahi驱动程序,我无法导航到此升级服务器的任何URL。但是较旧的一个正常。
有谁知道如何配置?
这是stacktrace:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:151)........
答案 0 :(得分:0)
我目前还不确定Sahi OS 5是如何做到的,但是我们更改了代码中的SSL实现并更改了browser.xml中的参数以防止phantomjs使用SSLv3
查看https://github.com/headissue/Sahi/commit/84c45f99f920893a7dfd39e2565819afd91c858e以供参考,如果他们仍然使用SSLv3,请查看您的浏览器
此致 globalworming
答案 1 :(得分:0)
解决这个问题有两件事:
-Dhttps.protocols =使用TLSv1,TLSv1.1