a";Java 1.7 TLS 1.2服务器;及;Java 1.6客户端“;

a";Java 1.7 TLS 1.2服务器;及;Java 1.6客户端“;,java,security,ssl,java-7,java-6,Java,Security,Ssl,Java 7,Java 6,Java 1.7 TLS 1.2服务器和Java 1.6客户端之间的SSL/TLS握手失败,客户端出现以下异常: 从客户端获取以下错误: Remote host closed connection during handshake; nested exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at org.springframework.we

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

从客户端获取以下错误:

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)
服务器端:

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

请在Java 1.6客户端中尝试以下操作:

-Dhttps.protocols=TLSv1


您还可以在服务器端提供错误吗?在服务器端附加日志。您应该在客户端应用程序中设置属性,以获取足够的信息来尝试调试。您可以跟踪客户端启用了哪些协议吗?客户端应用程序使用oracle Jdk 1.6,默认情况下它们使用tls 1.0,我认为。。。
System.setProperty("https.protocols", "TLSv1");