[CONC-95] Not able to connect to mySql server from mariadb client with SSL user Created: 2014-05-08 Updated: 2014-06-23 Resolved: 2014-06-23 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Mangala | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
We are trying to connect to mySql server with mariadb client library
None of the above worked for client connection. We are able to connect through mysql command line with ssl certificate. Just on the sidenote I was able to do ssl connect to the mysql server with mysqlclient library for c. But not with mariadb client library. |
| Comments |
| Comment by Georg Richter [ 2014-05-08 ] | |||||||||||||||||||||||||||||||||||||||
|
Can you please provide some more detailed information:
Thanks! | |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-08 ] | |||||||||||||||||||||||||||||||||||||||
|
This is the connection function In this case we had different certificates for server and client.
Mysql command line connect is successful.
In case of only one certificate the following is the connect function. This is also failing.
In both scenario we are getting the following error.
| |||||||||||||||||||||||||||||||||||||||
| Comment by Georg Richter [ 2014-05-09 ] | |||||||||||||||||||||||||||||||||||||||
|
Can you please try latest version from bzr tree?
| |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-09 ] | |||||||||||||||||||||||||||||||||||||||
|
I created new login in code.LaunchPad.netI get this error while downloading the Mariadb client. In I entered the following in Bazaar bzr branch lp:mariadb-native-client Get this error. | |||||||||||||||||||||||||||||||||||||||
| Comment by Georg Richter [ 2014-05-09 ] | |||||||||||||||||||||||||||||||||||||||
|
You need to install bzr (bazaar) and excute it from your shell prompt. | |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-09 ] | |||||||||||||||||||||||||||||||||||||||
|
Still get the same error. Passing all three certificates(using /opt/newcerts/client-key.pem /opt/newcerts/client-cert.pem /opt/newcerts/ca-cert.pem) Error Connecting to database: Failed to execute sql: Error: Access denied for user 'dscwriterinst'@'rutgers-v9' (using password: YES)Could not connect to database: dscmondb | |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-09 ] | |||||||||||||||||||||||||||||||||||||||
|
And also using libmariadbclient.a library that is built with your source code. | |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-13 ] | |||||||||||||||||||||||||||||||||||||||
|
Any update on this issue?? | |||||||||||||||||||||||||||||||||||||||
| Comment by Georg Richter [ 2014-05-13 ] | |||||||||||||||||||||||||||||||||||||||
|
Can you please post the output of
| |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-13 ] | |||||||||||||||||||||||||||||||||||||||
|
$ ldd libmariadb.so | |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-05-19 ] | |||||||||||||||||||||||||||||||||||||||
|
ssl client login worked with mariadb client library when mysql server database was set with SSL GRANTS. With X509 GRANTS set in mysql server database, we still have ssl connection issue. | |||||||||||||||||||||||||||||||||||||||
| Comment by denis [ 2014-06-09 ] | |||||||||||||||||||||||||||||||||||||||
|
I have the same problem under windows. There are any news on this issue? | |||||||||||||||||||||||||||||||||||||||
| Comment by Mangala [ 2014-06-09 ] | |||||||||||||||||||||||||||||||||||||||
|
The SSL client connection with mariadb client library still didn’t work when we used X509 certificate. When we used SSL certificate we were able to connect with mariadb client library. But this is under Linux. | |||||||||||||||||||||||||||||||||||||||
| Comment by Georg Richter [ 2014-06-23 ] | |||||||||||||||||||||||||||||||||||||||
|
Fixed in rev. 145 |