[MDEV-14636] Master_SSL_CA_Path does not work Created: 2017-12-12 Updated: 2019-12-05 Resolved: 2019-12-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation - Support, SSL |
| Affects Version/s: | 10.0, 10.1, 10.2.11, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Juan | Assignee: | Juan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | replication, ssl, upstream | ||
| Environment: |
CentOS Linux release 7.4.1708 |
||
| Description |
|
Following the directions in https://mariadb.com/kb/en/library/replication-with-secure-connections/, after generating keys following the tutorial at https://www.cyberciti.biz/faq/how-to-setup-mariadb-ssl-and-secure-connections-from-clients/ linked from https://mariadb.com/kb/en/library/secure-connections-overview/, results in an error. Specifically:
is misleading, because the variable MASTER_SSL_CAPATH does nothing in 10.2.11 MASTER_SSL_CA, MASTER_SSL_CERT, and MASTER_SSL_KEY must contain full path names for each corresponding file, and changing the value of MASTER_SSL_CAPATH has no effect on these variables. When the filenames are not fully qualified, turning on replication results in
|
| Comments |
| Comment by Elena Stepanova [ 2017-12-14 ] | |||||||||||||||||||||||||||||||||||||||||||
|
It's not limited to replication, server --ssl-ca* options exhibit the same behavior.
But this doesn't:
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-12-15 ] | |||||||||||||||||||||||||||||||||||||||||||
|
capath is not what it might look like. OpenSSL documents it as
If you have /etc/ssl/certs/ on your system, see what it looks like. That's, I suppose, what a proper CApath should be. We need to clarify --ssl-capath in the manual. | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Markus [ 2018-12-11 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Hi, I have also an issue with --ssl-capath on MariaDB with YaSSL. As stated in https://mariadb.com/kb/en/library/ssltls-system-variables/#ssl_capath I created a .pem file using
As I have currently only one .pem file, I specified the path to it in 50-server.cnf [mysqld]
After restart "have_ssl" turns to DISABLED.
Could you please provide some detailed information how to set up -ssl_capath with YaSSL and an example how to create the new file containing the concatenated individual certificate files in the tree? I understand that this should include the trustline of the certs. With only 5 clients I need to set up, this still may lead to several isses, if the certs or trust of chain is mixed up during concatenating the certs. | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Jacob Moorman (Inactive) [ 2019-04-12 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Geoff made prior changes to the docs around related variables and will carry similar instructions through to CHANGE MASTER. | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-04-14 ] | |||||||||||||||||||||||||||||||||||||||||||
|
It looks like you are trying to set the value of the ssl_capath system variable to the path of your client certificate. That is not what the ssl_capath system variable is for. If you want to use a client certificate, then that path would need to be set as the value of the ssl_cert option in one of the client option groups. e.g. [client] or [client-mariadb]. See here: https://mariadb.com/kb/en/library/configuring-mariadb-with-option-files/#client-option-groups On the server side, you just need to ensure that the certificate of the CA that signed your client certificate is concatenated into the file specified as the ssl_ca system variable. You most likely do not need to use ssl_capath at all. | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-04-15 ] | |||||||||||||||||||||||||||||||||||||||||||
|
The following documentation pages have been updated: https://mariadb.com/kb/en/library/change-master-to/ https://mariadb.com/kb/en/library/replication-with-secure-connections/ https://mariadb.com/kb/en/library/secure-connections-overview/#certificate-authorities-cas | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-04-15 ] | |||||||||||||||||||||||||||||||||||||||||||
|
I've assigned this to you. Can you please let me know if the new documentation changes clarify things for you? If you don't want to provide feedback or if you don't have the time to do so, please feel free to re-assign it back to me. |