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

0
Hi, I'm using an MSSQL database and can connect with the external connector to the database and execute queries. This works fine. However, when I try to run the app locally, the connection to the database fails, possibly due to TLS issues. I'm getting the following error:   Opening JDBC connection to 00.00.000.000\XXXXXXXXXXXX/XXXXXXXXXXXX failed with SQLState: 08S01 Error code: 0 Message: ""encrypt" property is set to "true" and "trustServerCertificate" property is set to "false" but 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 [TLS13, TLS12]. ClientConnectionId:asdasd-asda-asdd-1234-asfdasfdsfdf", retrying...(1/4)   I tried connecting using connection details, but when that didn't work, I created a JDBC connection string. For testing, I added both integratedSecurity=true and integratedSecurity=false, but I'm not able to test with integratedSecurity=false. I also tried using enabledTLSProtocols=TLSv1.0 and enabledTLSProtocols=TLSv1.2 but neither worked. I added the following configurations:   encrypt=true;trustServerCertificate=true;enabledTLSProtocols=TLSv1.2 and with TLSv1.0   I tested with both encrypt and trustServerCertificate set to false, then tested with only one of them set to true, and finally, I tested with both set to true. But none of these configurations worked. I couldn't find a solution in community forums, online, or with ChatGPT.   Mendix Studio version 10.15.0
asked
1 answers
0

Hi Daniel Pilich,

today i was going through with your post ,

so can you please let me know after it what the solution you found it.

how you manage this issue to resolve this jdbc connection error.

 

your reply will be appreciated.

 

thanks 

 

answered