#1 2022-06-23 14:32:39

lahlou
Member
Registered: 2018-12-13

sqlserverException

Hi
when i try to connect to mssql databse,
I get this error
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol v

I  use : mssql-jdbc-10.2.1.jre11.jar

Any idea ?

Last edited by lahlou (2022-06-23 14:36:07)

Offline

#2 2022-06-23 14:44:22

eduardo
Administrator
Registered: 2016-11-01
Website

Re: sqlserverException

Hi lahlou,

yes, you can append encrypt=false to your jdbc url if you are not using encryption, like this:

jdbc:sqlserver://IP;databaseName=DB;encrypt=false

Regards,
Eduardo

Offline

#3 2022-06-23 14:52:01

lahlou
Member
Registered: 2018-12-13

Re: sqlserverException

Thanks Eduardo
I have tried this before.
I get then same error
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol v

Regards.

Offline

#4 2022-06-23 14:56:30

eduardo
Administrator
Registered: 2016-11-01
Website

Re: sqlserverException

Hi lahlou,

pls take a look here: https://stackoverflow.com/questions/327 … re-connect

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB