Java6 真的不支持TLS1.2 吗?
有个老程序,用的是jdk6u20, 期间windows和SQL Server不断的升级.
Java 6 连SQL SSL 出错,但Java6不能升级,太多代码复杂的业务,第三方的组件。踏破铁鞋断定是TLS1.2的问题 .
https://www.oracle.com/technetwork/java/javase/overview-156328.html
Java6还是支持TLS1.2的,只是我们的java6版本太低。
Java SE Development Kit 6, Update 121 (JDK 6u121)
security-libs/javax.net.ssl
TLS v1.2 support now available
TLS v1.2 is now a TLS protocol option with the release of JDK 6u121. By default, TLSv1.0 will remain the default enabled protocol on client sockets.
但TLS1.2默认关闭的
Java SE Development Kit 6, Update 141 (JDK 6u141)
TLS1.2默认enabled.
security-libs/javax.net.ssl
Add TLS v1.1 and v1.2 to the client list of default-enabled protocols
TLSv1.2 and TLSv1.1 are now enabled by default on the TLS client end-points. This is similar behavior to what already happens in JDK 8 releases.
看来要6u141之后的版本。
Oracle上只有6u45, 其他真没有,要有可以给钱。