报错:

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

相关文章:

  • 2021-07-19
  • 2021-08-04
  • 2022-01-04
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2023-03-30
  • 2021-07-11
  • 2021-05-17
  • 2021-08-23
  • 2021-06-12
相关资源
相似解决方案