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

You may encounter this error or a similar error when attempting to connect to a dataset:

Connection failed: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.
Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS12]".

This error can occur when connecting to a database that does not have TLS 1.2 enabled. As of April 2021, OpenJDK disabled TLS 1.0 and TLS 1.1 by default. If you recently encountered this error, it might be due to a recent Java upgrade on your database server.

Note that TLS 1.0 has been officially deprecated and you can read more about this change and the reasons for it in this blog post.

Resolution

In order to resolve this, your database administrator should enable TLS 1.2 on your database server host. See more information on TLS 1.2 support for SQL Server and MySQL.