[debian-mysql] Bug#1154991: Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken

Bjørn Mork bjorn at mork.no
Mon Nov 23 18:25:19 GMT 2026


Otto Kekäläinen <otto at debian.org> writes:

> Hi,
>
> This is potentially related to this item in the changelog
> (https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1):
>
>   * Backport upstream patch to fix CONC-821 (Closes: #1139473, #1141671,
>     #1144671)
>
> I wonder why none of the original reporters had any follow-up and why
> we haven't received any bug reports on this in Debian unstable/testing
> in all these months since 1:11.8.9+ds-2 was uploaded. Perhaps nobody
> else had the use case of connecting to a MySQL Server with the MariaDB
> Client.

I assume the reason is that the issue depends on having "ssl-ca"
configured without actually doing any certificate validation.  Which
I'll admit is pointless and probably rare configuration.

I was "lucky" enough to have a system configured like that for no good
reason, and that's why I noticed.


> Can you try to reproduce this on a Debian unstable machine/container
> and tell me if the issue is reproducible there too? Or if it only
> affects this 1:11.8.9+ds-0+deb13u1 in Trixie?

The issue is reproducible with mariadb-client from unstable:

frtest4:~# mysql --version
mysql from 11.8.9-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper


frtest4:~# dpkg -S $(which mysql)
mariadb-client-core: /usr/bin/mysql


frtest4:~# apt policy mariadb-client-core
mariadb-client-core:
  Installed: 1:11.8.9+ds-4
  Candidate: 1:11.8.9+ds-4
  Version table:
 *** 1:11.8.9+ds-4 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status


frtest4:~# mysql --ssl=true --ssl-verify-server-cert=false --host=192.168.10.186 --user=remoteuser --password=$MPW test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 23
Server version: 11.8.9-MariaDB-0+deb13u1 from Debian -- Please help get to 10k stars at https://github.com/MariaDB/Server
 
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
MariaDB [test]> ^DBye


frtest4:~# mysql --ssl=true --ssl-verify-server-cert=false --ssl-ca=/tmp/ca.crt --host=192.168.10.186 --user=remoteuser --password=$MPW test
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed



Here using a mariadb-server from trixie, with dummy certificates
generated like this:

 openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -keyout ca.key -out ca.crt -days 16 -noenc -subj "/CN=foo CA"
 openssl ecparam -name prime256v1 -genkey -noout -out server.key
 openssl req -new -key server.key -out server.csr -subj "/CN=foo server"
 openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 14 -sha256


Bjørn



More information about the pkg-mysql-maint mailing list