Error: The Selected Protocol Version Is Not Accepted by Client Preferences
Issue
While connecting to SQL Server, the following error appears:
The action failed after 1 attempt(s), the failures were:
1) com.microsoft.sqlserver.jdbc.SQLServerException:
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.
Error: "The selected protocol version is not accepted by client preferences [TLS13, TLS12]".
Environment
SQL Server or HVA SQL Server connectors.
Resolution
To resolve this issue, ensure that TLS 1.2 or higher is enabled. See Microsoft's documentation for more information.