0

Sahi OS V5.0 在应用服务器升​​级到 TLS1.1 后抛出 Handshake failure 异常。使用 sahi 驱动程序,我无法导航到此升级服务器的任何 url。但旧的工作正常。

有谁知道如何配置这个?

这是堆栈跟踪:

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)........
4

2 回答 2

0

有两件事解决了这个问题:

  1. 将参数传递给 JVM 以设置要使用的 TLS 版本。

-Dhttps.protocols=TLSv1,TLSv1.1

  1. 在客户端和服务器中使用相同版本的 Java。
于 2015-11-09T12:09:07.303 回答
0

我目前不确定 Sahi OS 5 是如何做到的,但是我们更改了代码中的 SSL 实现并更改了 browser.xml 中的参数以防止 phantomjs 使用 SSLv3

查看https://github.com/headissue/Sahi/commit/84c45f99f920893a7dfd39e2565819afd91c858e以供参考,并查看您的浏览器,如果它们仍然使用 SSLv3

关于全球蠕虫

于 2015-10-13T12:42:38.887 回答