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:
- In the file osgi.properties I added jre-1.8=${jre-1.6},com.sun.tracing.
- -Dhttps.protocols=TLSv1.2 to the server JVM Options.
- In the file domain.xml tls11-enabled="false" tls12-enabled="true" tls-enabled="false".
- 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