-
Notifications
You must be signed in to change notification settings - Fork 375
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
SSL routines:ssl_choose_client_version:unsupported protocol] #1023
Comments
@david-puglielli |
You would be getting the latest ODBC driver and sqlsrv drivers then, but none supports SQL Server 2008 unfortunately. If upgrading SQL Server is not an option, then you can try rolling back to a previous version of the ODBC driver using the instructions here (you may need version 13.x of the driver, for which instructions are further down the page). |
But version 13.x is not compatible with debian 10 ? |
Actually SQL Server 2008 SP4 does support TLS 1.2 - see here. Also there a number of known issues with openSSL and Debian 10: https://wiki.debian.org/ContinuousIntegration/TriagingTips/openssl-1.1.1. This may require a configuration change - see #1021 and this comment. Please try that and let us know if it works. |
@david-puglielli . I did try that but it didn't work. |
Downgrading the minimum to TLSv1.0 actually worked, but it is not a permanent solution. I changed /etc/ssl/openssl.cnf section [system_default_sect] to [system_default_sect] |
Have you upgraded your SQL Server with TLS 1.2 support from the link I provided? The update is available here. |
Unfortunately that is not possible for now. |
hi @Afroty , Did you fix this issue? if yes, can you help me fix it? |
@lmtam if you are using debian. You can add this to your dockerfile which should fix the file. Understand, however, that there is a security risk with this.
|
Thanks. I upgraded the SQL Server and fixed this issue. |
This is very useful to me. |
@Afroty I am facing similar issue on CentOS7, any idea how can I fix this on CentOS? This happens when I am running MS SQBL ODBC driver using a dot net core app that connects with MS SQL Server using ODBC and then disconnects. It connects in first iteration it works but after that it gives SSL Provider error. |
@unvaare please check with the folks at dotnet/runtime instead @Razorhunter please create a new issue with details of your server, client, etc. You can refer this issue |
For those who are in the same situation (cannot update SQLServer) and are on Oracle Linux 8.2 (probably CentOS 8 too), just change |
the "sed" part very useful for me, on debian10 and in the situation of "Cannot update SQL Server" |
Be careful and use TLSv1 instead of TLSv1.0 Cheers |
Why? |
this configuration worked for me
|
Ubuntu 20.04 |
Try checking your DNS, connection string, and server. Error code 0x2AF9 usually means that the server's hostname couldn't be resolved so it could be a DNS problem, or you entered in a invalid server in the connection string. |
.+Please check the FAQ (frequently-asked questions) first. If you have other questions or something to report, please address the following:
+## PHP Driver version or file name
+## SQL Server version
+## Client operating system
+## PHP version
+## Microsoft ODBC Driver version
+## Table schema
+## Problem description
I am getting this error below. Not sure what's exactly causing it, but seems that the the SQL Server doesn't support ssl version the driver requires.
SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: [error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol] (SQL: select top 1 * from [users] where [email] = [email protected])
+## Expected behavior and actual behavior
+
+## Repro code or steps to reproduce
Dockerfile
docker-compose.yml
The text was updated successfully, but these errors were encountered: