Connecting SQL Server from Eclipse throws TLSv1 SSLContext not available

42 views Asked by At

I need to connect to an old SQL Server from Eclipse.

First, an error complaining about TLS10 not being supported, so I looked here and there and edited java.security and now looks like:

jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \  
    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \  
    include jdk.disabled.namedCurves  

That made the error disappear but another one now claims:

TLSv1 SSLContext not available

Again, I searched here and there and found something about jsee.jar. It´s hard to find it, but I finally got it, but here's the actions I´ve taken and the error persists.

  • copied the file in "C:\Program Files\Java\jdk-18.0.2.1\lib"
  • copied a file I found jsse-1.0.8.jar to the same location and renamed it to jsee.jar
  • installed the latest JDK

The complete error messages is:

El controlador no pudo establecer una conexión segura con SQL Server con el cifrado de Capa de sockets seguros (SSL). 
Error: "TLSv1 SSLContext not available". ClientConnectionId:something
  TLSv1 SSLContext not available
  TLSv1 SSLContext not available

The Eclipse version is

Version: 2022-09 (4.25.0)
Build id: 20220908-1902
OS: Windows 10, v.10.0, x86_64 / win32
Java vendor: Oracle Corporation
Java runtime version: 18.0.2.1+1-1
Java version: 18.0.2.1

How can I solve this? Please no "update your server" solutions. I have not any control over it, and in fact, I don´t even know where is it.

Edit I also need to connect from excel and that runs fine. It's clear that's because true binary code and java interpreted code are two different worlds

0

There are 0 answers