-
Hello, I have a problem when trying to configure a db service from Web UI using the guided installation "(self-hosted) MySQL/MariaDB" with MariaDB. I ran the commands of the various steps successfully until and included the step "Configure the mutual TLS" (*), where I can connect to the database server with the command 'sudo mariadb', execute 'SHOW GLOBAL VARIABLES LIKE 'have_ssl';' and obtain 'have_ssl YES'. The next step (Setup Access) seems to be the problematic one. I chose: Then according the procedure I should execute the following commands from the database client: but the first command fails, therefore I executed the following commands: ALTER USER 'root'@'localhost' REQUIRE SUBJECT '/CN=root'; The results, then, are:
fails with the same error "ERROR 1105 (HY000): connection refused"
mariadb -u root -p This is the teleport log of the failure taken from the proxy machine: Oct 09 14:44:49 tp-profile01 teleport[79971]: 2024-10-09T14:44:49+02:00 ERRO [DB:SERVIC] Failed to handle connection. error:[ It looks like there is a problem with a certificate on the client side, but I don't know how to debug and fix the issue: Any clue? (*) NOTE: in the page of step "Configure the mutual TLS" there is an example of mysql/mariadb configuration file showing the keys like ssl-ca (with the minus) while in the referenced MariaDB documentation (https://mariadb.com/docs/server/security/data-in-transit-encryption/enterprise-server/enable-tls/) the key is ssl_ca (with the underscore). Suggest to fix it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem was that the mariadb user was created with password and should have not. About the note (*): it seems that both the minus and the underscore are valid separator in between the keywords |
Beta Was this translation helpful? Give feedback.
The problem was that the mariadb user was created with password and should have not.
About the note (*): it seems that both the minus and the underscore are valid separator in between the keywords