PHP MSSQL error code 0x2746 - SQLSTATE[08001]

less than 1 minute read

After installing the SQL drivers for linux getting the following error:

The error

SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746

Found the following issue:

Which led me to the following fix:

Adding the following line to the d takes the SSL down to the 1024 bit RSA key

sed -i -E 's/(CipherString\s*=\s*DEFAULT@SECLEVEL=)2/\11/' /etc/ssl/openssl.cnf