3

I have installed sql server developer edition on my debian 10 linux, and I can connect to my localhost with no problem. I have a database which I could connect to it by a specific connection, for this purpose I have to connect to a gateway through pptp vpn, but when I want to connect with this command at my terminal:

# sqlcmd -S <server name> -U <username> -P <password>

I face with these messages:

Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SSL Provider: [error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol].
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection.

Do you know how can I fix it? Thanks.

dev.amirali
  • 300
  • 4
  • 18
  • On *nixy machines sqlcmd uses OpenSSL. You probably need to edit the [/etc/ssl/openssl.cnf file](http://manpages.ubuntu.com/manpages/cosmic/man5/config.5ssl.html) on your client computer to tweak the MinProtocol version to be compatible with the SQL Server you're connecting to, especially if it's an older edition of SQL Server. – AlwaysLearning Sep 22 '20 at 05:18
  • @AlwaysLearning Thanks man! That's the solution! It worked! Thanks a lot. – dev.amirali Sep 22 '20 at 10:29

0 Answers0