Open jpalermo opened 1 month ago
If anybody else is running into this issue, we couldn't figure out where the disconnect is between the mysql2 code and the mariadb-connector-c library. It all seems like it's setting the correct flags, but for some reason it refuses to disable TLS.
We worked around it by compiling the mariadb-connector-c with the -DDEFAULT_SSL_VERIFY_SERVER_CERT=0
which defaults it to the old behavior.
Since mariadb-connector-c 3.4.2 (not released yet), MARIADB_TLS_DISABLE_PEER_VERIFICATION
envvar can be used to disable this behavior.
https://mariadb.com/kb/en/mariadb-connector-c-3-4-2-release-notes/
Maybe, you can write disable-ssl-verify-server-cert
or disable-ssl
in [client]
section in your ~/.my.cnf
to disable verification or entire TLS. But I don't confirmed it yet.
Mariadb connector c release notes for 3.4.0 mention
enable MYSQL_OPT_SSL_VERIFY_SERVER_CERT by default
.Using mysql2 with that connector does not allow connecting to a server without using TLS. Setting
ssl_mode
todisabled
seems to do nothing.