服务器报错如下:

 Caused by: 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 returned an incomplete response. The connection has been closed. ClientConnectionId:e8dd5a3f-2464-4d24-aca9-4c2785c34ff4".

sqlserver ssl连接问题 java1.6

解决方式:

jdk1.6.0_43\jre\lib\ext目录下加入bcprov-ext-jdk15on-1.54.jar、bcprov-jdk15on-1.54.jar两个jar包

jdk1.6.0_43\jre\lib\security 目录下修改java.security文件,修改security.provider.1=sun.security.provider.Sun

改为security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider
 

相关文章:

  • 2022-01-06
  • 2022-01-13
  • 2022-02-26
  • 2022-12-23
  • 2021-10-01
  • 2022-01-26
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
相关资源
相似解决方案