Java 1.8.0 enable TLS1.2 in JDBC connection

前端 未结 2 456
死守一世寂寞
死守一世寂寞 2021-01-14 04:44

I have an SQL Server 2014 updated to the latest fixpack (12.0.5207). In the environment, the only protocol enabled is TLS1.2 (the registry keys has been set

2条回答
  •  感情败类
    2021-01-14 04:48

    Older versions of Microsoft's JDBC driver for SQL Server apparently assume that TLS v1.1 will be available on the server. That is, they were not coded to handle the case where the server explicitly rejects (or ignores) TLS v1.1 traffic.

    Starting with JDBC driver version 6.3.2 we can add ;sslProtocol=TLSv1.2 to our connection URLs to specify the TLS version to use.

提交回复
热议问题