Код: Выделить всё
ubuntu: 22.04
pyodbc==4.0.28
python: 3.8
openssl version: OpenSSL 1.1.1p 21 Jun 2022
Код: Выделить всё
**ERROR: DIAG [08001] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746
DIAG [08001] [Microsoft][ODBC Driver 17 for SQL Server]Client unable to establish connection**
Код: Выделить всё
isql -v -k - With this command i connect to my the server and there is no problem
Код: Выделить всё
input > openssl version
output > OpenSSL 1.1.1p 21 Jun 2022
Код: Выделить всё
input > sudo apt list --installed | grep openssl
output > libxmlsec1-openssl/jammy,now 1.2.33-1build2 amd64 [installed,automatic]
openssl/jammy-updates,jammy-security,now 3.0.2-0ubuntu1.17 amd64 [installed]
Код: Выделить всё
**openssl_conf = default_conf
[ default_conf ]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=1**
Подробнее здесь: https://stackoverflow.com/questions/788 ... x2746-clie