vscode-sql-notebook icon indicating copy to clipboard operation
vscode-sql-notebook copied to clipboard

error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL

Open feihuao opened this issue 3 years ago • 3 comments

I been looking for something like this for some time. Similar one is SQLCell but it does not support autocomplete. When I connect to mssql,it fails Failed to connect to "test": Failed to connect to xxx.xx.xxx:1433 - 16484744:error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL:../../third_party/boringssl/src/ssl/handshake_client.cc:697:

feihuao avatar Oct 05 '22 14:10 feihuao

Thanks for this report. I haven't been able to reproduce using my testing setup. Can you share steps that I can follow to reproduce the behavior? Are you using a network proxy that enforces specific encryption? What about your DB configuration?

Ultimately, we just need to find out what configuration should be passed to the mssql node driver for the handshake to succeed. That code is here for reference.

I'm testing with the following

1. Startup local mssql server

docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=yourStrong(!)Password" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest

2. Create new connection config

{
  "driver": "mssql",
  "host": "localhost",
  "port": 1433,
  "user": "sa",
  "password": "yourStrong(!)Password",
  "encrypt": false,
  "serverTrustCertificate": false,
}

Then the extension connects and executes queries as expected.

cmoog avatar Oct 05 '22 14:10 cmoog

I get that same error. I've got the connection info set just like you have in 2.

Could this be a Mac vs. Windows thing? I'm trying to connect on a Mac.

Here is the error message:

Failed to connect to "SQL": Failed to connect to ev-compsci-01:1433 - 140407413018712:error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL:../../third_party/boringssl/src/ssl/handshake_client.cc:697:

dicer2000 avatar Oct 06 '22 01:10 dicer2000

same error from linux connecting to an old sql2008

ilkosta avatar Nov 17 '22 12:11 ilkosta