The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

后端 未结 2 1058
误落风尘
误落风尘 2020-11-30 11:27

I used this code to create a connection to SQL Server.

String connectionUrl = \"jdbc:sqlserver://IP:1433;\" +
        \"databaseName=db;user=db;password=pwd\         


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 12:05

    Check out this Microsoft JDBC Blog post:

    • The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.

    for resolve SSL problems with SQLServer (specially for android clients:JDBC driver can not be used effectively in the Android OS on unfortunately) try to using jDTS:

    jTDS is an open source 100% pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server (6.5, 7, 2000, 2005, 2008 and 2012)

提交回复
热议问题