[MXS-3093] Client side certificates for secure REST API fails Created: 2020-07-24 Updated: 2020-12-08 Resolved: 2020-08-24 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | REST-API |
| Affects Version/s: | 2.5.1 |
| Fix Version/s: | 2.5.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Anders Karlsson | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux CentOS 7.7 |
||
| Sprint: | MXS-SPRINT-113 |
| Description |
|
WIth MariaDB MaxScale configured for TLS for REST like this:
Then you get odd errors when trying to connect using client keys:
Using --tls-verify-server-cert=false makes this work though. And then only the ca-cert is necessary:
Including only the client certificate cause yet another strange error message:
|
| Comments |
| Comment by markus makela [ 2020-08-19 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
The latter error is a bug in MaxCtrl where it doesn't check that both tls-key and tls-cert are defined which I managed to reproduce and fix. The other problems look like some error reporting problems but I haven't been able to reproduce the problem. Can you provide steps on how to create the certificates you used to test this? This is how I generated the certificates that I used to test:
| ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-08-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Closing as fixed until we get a reproducible test case. |