Error:Server chose TLSv1 using Java 8 and Glassfish 3.1.2.2

72 views Asked by At

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

0

There are 0 answers