我遇到以下SSL异常:
def function(l1,l2):
list1 = []
list2 = []
for e1 in l1:
for e2 in l2:
if e1 < e2:
list1.append(e1)
elif e2 < e1:
list2.append(e2)
l1[:] = list1
l2[:] = list2
return l1,l2
SSL调试日志如下所示:
ERROR STDERR - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
2016-10-21 07:26:37,502 [http-10.8.184.11-8080-14] ERROR STDERR - at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
2016-10-21 07:26:37,502 [http-10.8.184.11-8080-14] ERROR STDERR - at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
2016-10-21 07:26:37,502 [http-10.8.184.11-8080-14] ERROR STDERR - at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1822)
答案 0 :(得分:0)
您正在运行一些仍然支持SSLv2ClientHello
的古老版本的Java,并且服务器拒绝接受它。您应该在连接之前从已启用的协议中删除SSLv2ClientHello
。