0

When I try to connect to the MS SQL Server 2017 Express instance from JSP using JDBC driver 4.2, I get the following error.

com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server did not return a response. The connection has been closed.".

Please help me to fix this.

1 Answers1

2
  1. Edit $JAVA_HOME\jre\lib\security\java.security

  2. Find jdk.tls.disabledAlgorithms=

  3. Remove 3DES_EDE_CBC

This should fix it!

nj2237
  • 1,220
  • 3
  • 21
  • 25