I would like to connect to my database instance using TLS1.2 from a Linux instance and I am unable to do so. I am using the following configuration
- Java JDK : Amazon corretto openjdk version : "1.8.0_252"
- JDBC driver : Microsoft SQL server mssql-jdbc:8.2.2.jre8
- Connection string : jdbc:sqlserver://[my database url]:1433;SSLProtocol=TLSv1.2
- Operating system: Amazon Linux
- Database: Microsoft SQL Server 16 running on a Windows machine
- I have turned off TLS1 and TLS1.0 on the database to force my java application to use only TLS1.2
The following error appears when my application tries to connect to the database:
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).