Problem connecting to Azure SQL Server database from an android application

asked 2023-01-17T14:27:39.1933333+00:00
Joé Alex NTSIA 0 Reputation points

SSL certificate problem when connecting to the azure sql server database from an android application. The connection works with a virtual phone. But with my physical Redmi phone it doesn't work. I receive the following error:

(network error IOExecption: SSL handshake aborted: ssl=0xbe8644608 I/O error during system call broken pipe).

my Azure Sql Server database connection string is:

ConnectURL = "jdbc:jtds:sqlserver://myserver.database.windows.net:1433;ssl=require;DatabaseName=MYDATABASENAME;user=MyUserName;password=Mypassword;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database .windows.net;loginTimeout=1800;Language=English;";

The android version is:

'com.android.application' version '7.3.1'

Help me please

Azure SQL Database
{count} votes