[CONC-538] Can't connect via SSL Created: 2021-03-26 Updated: 2022-07-25 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | TLS/SSL |
| Affects Version/s: | 3.1.11, 3.1.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Marco Paland | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Server: Binary package mariadb-10.5.9-linux-systemd-x86_64 on Debian buster |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I have a serious problem to SSL connect the mariadb server instance. The server is a binary package mariadb-10.5.9-linux-systemd-x86_64 on Debian buster. The according SSL certificates are standard, self-signed and generated after this manual: SSL connecting using Windows DBeaver (v21.0.1) works fine, DBeaver uses mariadb-connector-J internally. So it proofs, that server and the certs are fine. I compiled and tried the latest mariadb-connector-c (3.1.12) which gives the following error: I tried the same with latest HeidiSQL which uses an older libmariadb.dll version (3.1.7). But same error here. So I suspect, there's a SSL problem, perhaps in using Schannel.
|
| Comments |
| Comment by Georg Richter [ 2021-03-27 ] |
|
Can you please check if the connection works without client certificates? |
| Comment by Marco Paland [ 2021-03-27 ] |
|
Without client-cert and client-key (just ca-cert given) the connection works. Anyway, IMHO wouldn't it be more consistent to use WolfSSL as TLS lib? |
| Comment by Georg Richter [ 2021-03-28 ] |
|
Client certificate is only required, if the user account was defined with REQUIRE X509, in this case client will send certificate to the server. However it would be good to know what exactly fails. If these are self signed certificates, do you mind to attach them to this report? |
| Comment by Marco Paland [ 2021-03-28 ] |
|
Georg, thanks a lot for giving advice here. I uploaded the according test files. Yes, too bad that WolfSSL can't be used, I didn't notice its license. |