The server selected protocol version TLS10 is not accepted by client preferences TLS12

报错:

The server selected protocol version TLS10 is not accepted by client preferences TLS12

The server selected protocol version TLS10 is not accepted by client preferences TLS12

 原因:

因为新版的 JDK 不推荐使用旧的 TLSV1.0 的协议,所以默认删除 TLS10 的支持

解决方法:

修改jdk环境下的文件:/java/jdk1.8/jre/lib/security/java.security

直接把 jdk.tls.legacyAlgorithms 注释掉就可以了,如下,亲测有效。

#jdk.tls.legacyAlgorithms= \
#        K_NULL, C_NULL, M_NULL, \
#        DH_anon, ECDH_anon, \
#       RC4_128, RC4_40, DES_CBC, DES40_CBC, \
#        3DES_EDE_CBC

结果:

The server selected protocol version TLS10 is not accepted by client preferences TLS12

The server selected protocol version TLS10 is not accepted by client preferences TLS12

上一篇:Tree traversal


下一篇:云计算市场规模庞大 云安全服务面临极大挑战