SAHIOSV5.0在应用服务器升级到TLS1.1后抛出握手失败异常。使用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)........发布于 2015-10-13 20:42:39
我现在不确定Sahi OS5是如何做到这一点的,但我们更改了代码中的SSL实现,并更改了browser.xml中的参数,以防止phantomjs使用SSLv3
如果您的浏览器仍在使用SSLv3,请查看https://github.com/headissue/Sahi/commit/84c45f99f920893a7dfd39e2565819afd91c858e以供参考
关于全局蠕虫
发布于 2015-11-09 20:09:07
有两件事解决了这个问题:
将参数传递给JVM以设置要使用的版本的TLS
-Dhttps.protocols=TLSv1,TLSv1.1
在客户端和服务器中使用相同版本的Java的
https://stackoverflow.com/questions/33094783
复制相似问题