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
Unknown SSL error - MariaDB #519
Comments
|
If you open a connection from command line with --sslcipher=DHE-RSA-AES256-SHA (which is used for my linux connection). I get same error as in issue |
|
the same problem resolved by modify windows register (windows 7) : like explain in this link ( see the ticket above Possible Solution -> ticket ) |
|
Thanks for your suggestion, but this is not probably solution of the problem :-(. The registry keys are same on the both PCs. |
|
I have just moved at top of register this lines : Then its work fine. |
|
This doesn't help. Same error. |
|
The problem is in the self-signed certificate and CA deployment on the client. I see that after I have to say, that I am quite disappointed by the level of support. The issue is not even investigated by anyone more than 3 weeks :-(. Great customer support ... Thanks to @jacFerron for some hints .... |
|
Be sure I am reading your comments here. Though HeidiSQL is not commercial, and so you cannot expect such support as in commercial products probably. I also have no clue about the cause here. Apart from downgrading HeidiSQL to 9.5 I cannot tell you anything yet. The comments are also confusing, as the first post tells me it happened on 10.0, while the current version is 10.1. Also, do I understand right that one pc is running the SSL connection fine and the other one not? |
|
Hi, I do not expect same support as for a commercial product, but at least when you don't know just say it, No problem at all. Version is not important I've tried 10.0.X up and also 10.1 current. Same problem. I keep the version same for reference purposes. Yes, I have two PCs with almost same environment (W7 Pro, 64-bit, upgraded, HeidiSQL 10.0.0.5460, installed self-signed certificates etc.). I can connect from one and not from the other. This leads me to the conclusion that there is a problem with handling and trust to self-signed CA certificates. |
|
Ok, you habe 10.0 installed, and use MariaDB with the shipped libmariadb.dll, which is then from Connector v3.0.8 / Server 10.3.6. Perhaps we find an issue wrt self signed certificates with this particular version. |
|
Found this, which might be irrelevant, because it's for the Java Connector: |
|
It is not the case. I see from wireshark log that I receive both CA and server cert to the client. Do you use an external library for handling SSL? |
|
Yes, connecting is done by |
|
Where can I find the project for libmariadb? |
|
Related
In my recent commit 51da7c8 I am now setting @mochour did you accidentally close this or is it fixed for you on MariaDB 10.1 ? Does it als run on MySQL 5.7 (or older) for you? |
|
As I still can reproduce that on Win10, connecting with SSL to a MySQL v5.7 server, I am reopening this issue. The forum thread also has some useful details. |
|
Two ideas for workarounds:
|
|
It could not be loaded together and decided based on MySQL version? Or do it for |
|
Loaded together? No, these both dlls are already there, but the newer one is preferred. The older one is currently just used as a fallback, when the other one was not installed, for some reason. But it seems the older one now does not throw this "Unknown SSL error" on older servers, while it does on MySQL 8 for example, where the newer one succeeds. |
|
My advertised "Library" dropdown is in the latest builds, with an additional libmysql-6.1.dll for servers which won't work with one of the other libmysql.dll or libmariadb.dll: Please install the newer builds if you still see this issue, and test out the 3 libraries. Please use the installer from the download build section, not just the heidisql.exe file! |
|
@ansgarbecker: Installing HSQL from latest build installer (upgrading from HSQL not worked), and selecting |
|
Thank for your feedback @Saibamen ! |
|
@ansgarbecker: Don't close this issue. @mochour Please retest |
|
Ok, I'll wait for @mochour then. |
|
Because I had to upgrade from Win7 to Win10, the problem is not reproducible anymore. I suggested to close the issue. I can connect to MariaDB via SSL with latest HSQL 10.2.0 withouth any problem. |
|
Ok, just shout if this seems again broken at some point. |
|
@ansgarbecker: I tried the test case defined in MDEV-13492 on Windows 10 Build 1809 and HeidiSQL 10.3.0.5771 with no success. These are the error messages with the different libraries:
The connection succeeds using command line: |
|
@kpenza: Did you install latest nightly Heidi by updating existing installation, or installing latest nightly version by nightly installer from here: https://www.heidisql.com/download.php#nightlybuilds ? |
|
@Saibamen I have installed the latest nightly build (10.3.0.5861) using the installer and got the same errors: These are the error messages with the different libraries: libmariadb.dll - Unknown SSL error (0x80090308) The issue is fixed in the latest version of the MariaDB Connector/C library. I have upgraded the MariaDB Connector/C from 3.1.4 to 3.1.7 available from Connectors/c/connector-c-3.1.7/ and the SSL connection now works fine. |
|
Ok I'll pull an update of that lib. |
|
Next built installer has |
|
Hi I get this same error with connector-c-3.1.12 and connector-c-3.1.15. Could there be a regression? |


Steps to reproduce this issue
Current behavior
The behavior is different on two PCs. On a desktop I can connect, on a laptop the error occurs.
Both PCs have basically same configuration (upgrades, tools installed).
Originally I had this issue, but it was solved by HeidiSQL 10.0.0.5460. Now I am able to connect to the DB via SSL.
After fresh installation of the same version to the laptop the connection fails.
The problem on the desktop was solved after reinstalling 10.0.0.5460
I can always connect from Ubuntu via mysql client.
Expected behavior
Possible solution
There is an open ticket related to TLS handshake problem.
Environment
The text was updated successfully, but these errors were encountered: