New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed) #1727
Comments
@rahs what SQL Server version are you connecting to? We've had reports of similar issues with older SQL Server versions (2005 SP4, for example in #765). It may also be a general connectivity issue - #454 covers a similar one. In that case, this StackExchange thread has some general info on this exception https://stackoverflow.com/questions/9890971/sql-server-a-connection-was-successfully-established-with-server-existing-c that may be helpful. |
10.50.1600.1 ent sqlops 0.27.3 works fine |
I see the same |
azure data studio 1.0.0 - same error |
I am also getting the error: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught) However, I only get it if I go to advance and set Encrypt under Security to True. If I leave it blank which is the default I get: Connection failed due to Kerberos error. However, running klist I can see that I have a valid Kerberos token. |
This is a generic connectivity bug coming from the driver. Please take a look through some of the related issues on this GitHub repo for additional troubleshooting steps for general connectivity issues. Thanks for reporting! |
I am having a similar issue: #11249 |
I just hit this on 1.21.0 which I just installed. Older version worked fine. Older sql server version gives the error, newer ones do not. Connecting via mssql-cli works fine for all still. Interestingly enough, an office outlook add-in failed to be served up from a server with a minimum of TLSv1.2. I had to downgrade the server to 1.1 to get the office add-in to load into outlook desktop's web host thingey. This did work though: #11367 (comment) |
i am getting the same error while trying to create a new connection A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Undefined error: 0) |
@NanaYawJr this is a pretty old issue and this can occur for a variety of causes. You can try setting "Trust Server Certificate" to True in the Advanced Connection options, which helps in some cases. You can also search through older issues for various other suggestions to similar issues. If that doesn't help please open a new issue with more details on your repro/environment. Thanks! |
Issue Type: Bug
SQL Operations Studio version: sqlops 0.30.6 (df7e3ec, 2018-06-19T21:50:31.119Z)
OS version: Linux x64 4.9.0-6-amd64
System Info
flash_3d: unavailable_software
flash_stage3d: unavailable_software
flash_stage3d_baseline: unavailable_software
gpu_compositing: unavailable_software
multiple_raster_threads: unavailable_off
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: unavailable_software
video_encode: unavailable_software
vpx_decode: unavailable_software
webgl: unavailable_off
webgl2: unavailable_off
Extensions (2)
The text was updated successfully, but these errors were encountered: