[CONC-391] Unknown SSL error - MariaDB Created: 2019-02-27 Updated: 2019-12-03 Resolved: 2019-12-03 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.8 |
| Fix Version/s: | 3.1.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mochour | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
HeidiSQL - 10.0.0.5460 |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Steps to reproduce:
The behavior is different on two my PCs. On a desktop I can connect, on a laptop the error occurs. You can see related communication here. I can always connect from Ubuntu/Linux or Cygwin via mysql client. I'v checked MS documentation it looks to me that problem is in file ma_schannel.c at line 842 – calling QueryContextAttributes. Returns SEC_E_INVALID_TOKEN 0x80090308L. |
| Comments |
| Comment by Georg Richter [ 2019-02-28 ] |
|
Hi, Windows 7 is eoled and not an official supported platform. However, it looks like there is a problem with the server certificate. Can you please provide some more information
Thanks! /Georg |
| Comment by Mochour [ 2019-03-01 ] |
|
Hi, see attached dumps.
Self-signed CA is installed on both PCs to the cert store. Yes, the problem occurs without root cert but also with it. List of the supported cipher suites is same on both PCs. |
| Comment by Georg Richter [ 2019-03-02 ] |
|
The problem doesn't occur in QueryContextAttributes, since the server certification is checked only if a root authority was specified. It looks like more, that the used cipher "DHE-RSA-AES_256_CBC_SHA" is the reason of the problem. However, according to the discussion on HeidiSQL Github this cipher was already disabled?! |
| Comment by Mochour [ 2019-03-02 ] |
|
OK, maybe it is not QueryContextAttributes, but it looks to me somehow connected with AcceptSecurityContext function or related. Returned value corresponds to SEC_E_INVALID_TOKEN value. I can see in the Event Viewer Schannel error id 36888 when the connection fails. |
| Comment by Georg Richter [ 2019-03-02 ] |
|
Can you confirm that the cipher above was disabled in registry?! |
| Comment by Mochour [ 2019-03-02 ] |
|
This is the list of available ciphers from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002 But it is same on both PCs... TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256 |
| Comment by Mochour [ 2019-03-06 ] |
|
It is not problem of the self-signed certificate. I have deployed letsencrypt certificate to the server and problem persists. |
| Comment by Georg Richter [ 2019-03-09 ] |
|
The registry seems to be broken: Does the problem still occurs, if you specify ssl_cipher=AES128_SHA256 ? |
| Comment by Mochour [ 2019-03-10 ] |
|
I'm sorry, this is my mistake during copying of the cipher list. OpenSSL cipher is not there ... This is the correct list: |
| Comment by Mochour [ 2019-03-10 ] |
|
Windows error - SSL connection error: no cipher match ... |
| Comment by Mochour [ 2019-03-12 ] |
|
I needed to upgrade to win 10, so the problem disappered. Closing the issue. Thanks |
| Comment by Georg Richter [ 2019-04-06 ] |
|
Closed by user request |
| Comment by Geoff Montee (Inactive) [ 2019-12-03 ] |
|
This should be fixed by the fix for |