0

I changed the server to java 8 to avoid having problems with TLS, but now it is giving me the following error:

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException:Error: "Server chose TLSv1, but that protocol version is not enabled or not supported by the client.". Caused by: javax.net.ssl.SSLHandshakeException: Server chose TLSv1, but that protocol version is not enabled or not supported by the client.

Things I've tried:

  1. In the file osgi.properties I added jre-1.8=${jre-1.6},com.sun.tracing.
  2. -Dhttps.protocols=TLSv1.2 to the server JVM Options.
  3. In the file domain.xml tls11-enabled="false" tls12-enabled="true" tls-enabled="false".
  4. I have tried in the url connection ";encrypt=true;trustServerCertificate=true" .

But the error still appear.

Could someone help me with other ideas that can solve the error, please

12
  • What does PRINT @@VERSION return on your SQL Server? Commented Oct 23, 2023 at 21:25
  • Yes, it is a SQL Server 2008 R2, from an old system that now needs to connect to a cloud system Commented Oct 23, 2023 at 21:32
  • 1
    2008 R2 supports TLS1.2 if you kept it up to date when it was supported. Sounds like not only are you using a version of SQL Server that had been out of support for 4 years but you haven't installed an update on the server since 2015 (you didn't tell us what @@VERSION return, so I assume you installed some updates prior)... The real problem isn't your application, it's your lack of keeping your software up to date and secure. Commented Oct 23, 2023 at 21:35
  • 1
    Seems like you're giving more reason why using the version of SQL Server you are needs to stop and that it's not a case of wanting to get the server supported, but you must. Commented Oct 23, 2023 at 21:52
  • 1
    As well as the latest updates for SQL Server support.microsoft.com/en-gb/topic/… you also need to install the latest Windows updates, and if you are on (I guess) an old version of Windows you need to enable TLS1.2 (you can use the free IIS Crypto tool for this). Ideally upgrade SQL Server and Windows to a supported version. Commented Oct 23, 2023 at 22:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.