首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Java 1.7 TLS 1.2服务器和Java 1.6客户端之间的SSL / TLS握手

Java 1.7 TLS 1.2服务器和Java 1.6客户端之间的SSL / TLS握手
EN

Stack Overflow用户
提问于 2015-10-20 16:11:54
回答 1查看 1.4K关注 0票数 1

Java 1.7 TLS 1.2 serverJava 1.6 client之间的SSL / TLS握手失败,客户端出现以下异常:

从客户端获取以下错误:

代码语言:javascript
复制
Remote host closed connection during handshake; nested exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:498)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:446)
    at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:418)
    at com.aviva.ukgi.gw.cc.midvehiclesearch.rest.MIDVehicleSearchServiceRest.executeMIDVehicleSearch_aroundBody0(MIDVehicleSearchServiceRest.java:69)
    at com.aviva.ukgi.gw.cc.midvehiclesearch.rest.MIDVehicleSearchServiceRest.executeMIDVehicleSearch_aroundBody1$advice(MIDVehicleSearchServiceRest.java:134)
    at com.aviva.ukgi.gw.cc.midvehiclesearch.rest.MIDVehicleSearchServiceRest.executeMIDVehicleSearch(MIDVehicleSearchServiceRest.java:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

服务器端:

代码语言:javascript
复制
2015-10-20 10:24:17.454 | DEBUG | qtp525589302-1668 |  | org.eclipse.jetty.io.nio.ssl     | 94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | [Session-1, SSL_NULL_WITH_NULL_NULL] SslConnection@1936d287 SSL NOT_HANDSHAKING i/o/u=0/0/0 ishut=false oshut=false {AsyncHttpConnection@5e37a9ff,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0} NOT_HANDSHAKING filled=0/0 flushed=0/0
2015-10-20 10:24:17.454 | DEBUG | qtp525589302-1668 |  | org.eclipse.jetty.io.nio.ssl     | 94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | [Session-1, SSL_NULL_WITH_NULL_NULL] handle SslConnection@1936d287 SSL NOT_HANDSHAKING i/o/u=0/0/0 ishut=false oshut=false {AsyncHttpConnection@5e37a9ff,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0} progress=false
2015-10-20 10:24:17.470 | DEBUG | qtp525589302-1669 |  | org.eclipse.jetty.io.nio.ssl     | 94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | [Session-1, SSL_NULL_WITH_NULL_NULL] SslConnection@1936d287 SSL NOT_HANDSHAKING i/o/u=517/0/0 ishut=false oshut=false {AsyncHttpConnection@5e37a9ff,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0} NOT_HANDSHAKING filled=517/517 flushed=0/0
2015-10-20 10:24:17.471 | DEBUG | qtp525589302-1669 |  | org.eclipse.jetty.io.nio.ssl     | 94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | [Session-1, SSL_NULL_WITH_NULL_NULL] unwrap OK NOT_HANDSHAKING consumed=517 produced=474
2015-10-20 10:24:17.471 | DEBUG | qtp525589302-1669 |  | org.eclipse.jetty.io.nio.ssl     | 94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | [Session-1, SSL_NULL_WITH_NULL_NULL] SslConnection@1936d287 SSL NOT_HANDSHAKING i/o/u=0/0/0 ishut=false oshut=false {AsyncHttpConnection@5e37a9ff,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0} NOT_HANDSHAKING filled=0/0 flushed=0/0
EN

回答 1

Stack Overflow用户

发布于 2015-11-11 00:16:39

请在下面的Java 1.6客户端中尝试:

代码语言:javascript
复制
-Dhttps.protocols=TLSv1

代码语言:javascript
复制
System.setProperty("https.protocols", "TLSv1");
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33231351

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档