SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

前端 未结 8 2159
鱼传尺愫
鱼传尺愫 2020-11-27 16:39

I am getting the following error when connecting to a SQL Server database using version the Microsoft JDBC Driver:

com.microsoft.sqlserver.jdbc.SQLSer

相关标签:
8条回答
  • 2020-11-27 17:18

    Microsoft Recently open sourced their driver. One can see mssql-jdbc driver activity on GitHub. I guess latest preview version is 6.1.5.

    Also you can find all preview versions on maven too. Supporting both JDK7 & JDK 8.

    0 讨论(0)
  • 2020-11-27 17:22

    In my case i had a sql server using the 3DES_EDE_CBC algorithm, this is disabled by default on jdk 1.8 , so checking the

    /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/security/java.security

    And eliminating the algorithm from:

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

    Worked for me.

    0 讨论(0)
提交回复
热议问题