user3249353
user3249353

Reputation: 279

Use TLS 1.2 in mssql jdbc

Starting which version of mssql-jdbc- jre8 is TLS 1.2 supported? Is a special configuration needed to use TLS 1.2? or it works out of the box)MSSQL server is set up to accept only TLS 1.2 connections)?

Upvotes: 1

Views: 11570

Answers (1)

Stephen C
Stephen C

Reputation: 719729

Starting which version of mssql-jdbc- jre8 is TLS 1.2 supported?

Java 8 supports TLS1.0 through TLS1.2, and TLS1.2 is the default; see Transport Level Security (TLS) and Java. The MSSQL JDBC drivers will use the JVM's SSL libraries.

Is a special configuration needed to use TLS 1.2?

No. Not on the client side.

or it works out of the box.

Yes.

MSSQL server is set up to accept only TLS 1.2 connections?

That would depend on how the database server itself is configured. According to "TLS 1.2 support for Microsoft SQL Server", SQL Server 2016 supports TLS 1.0 through 1.2, but you can configure it to disable versions that you don't want.

For the record TLS1.3 is available in Java 8 since 1.8.0u261; see TLSv1.3 - is it available now in Java 8?.

Upvotes: 2

Related Questions