MSSQL connect error from ubuntu 22.04 LTS

From SAMB Wikipedia
Jump to navigation Jump to search

SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]SSL Provider [error:0A0C0103:SSL routines::internal error]

Error when connecting to MSSQL Server Version 2016 from Ubuntu 22.04 LTS with PHP8.0 and Laravel 7.2

Error Snapshot

Solution :

  • Open your openssl.conf. usually in /etc/ssl/openssl.conf
  • edit: /etc/ssl/openssl.cnf
# 1st line in the file added
openssl_conf = default_conf

# End of file added

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
MinProtocol = TLSv1
CipherString = ALL:@SECLEVEL=0