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

Bjørn Mork bjorn at mork.no
Mon Nov 23 11:26:39 GMT 2026


Package: mariadb-client
Version: 1:11.8.9+ds-0+deb13u1
Severity: normal

Dear Maintainer,

I cannot use TLS against servers with unverifiable certficates after
upgrading to 1:11.8.9+ds-0+deb13u1 

The client complains about Hostname verification regardless of the 
command line or config file setting:
 
bjorn at brego:~$ mysql --ssl-verify-server-cert=false
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
bjorn at brego:~$ mysql --ssl-verify-server-cert=true
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
bjorn at brego:~$ mysql --version
mysql from 11.8.9-MariaDB, client 15.2 for debian-linux-gnu (aarch64) using  EditLine wrapper

Note that the failure is expected with "ssl-verify-server-cert" enabled.
The certificate presented by the server does not have a hostname i neither
CommonName nor SAN


Same commands using the previous trixie package (1:11.8.6-0+deb13u1):

bjorn at brego:~$ mysql --ssl-verify-server-cert=true
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
bjorn at brego:~$ mysql --ssl-verify-server-cert=false
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 121800
Server version: 26.10.0-cloud MySQL Enterprise - Cloud
 
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
root at 10.2.1.11 ((none)) W> \s
--------------
mysql from 11.8.6-MariaDB, client 15.2 for debian-linux-gnu (aarch64) using  EditLine wrapper
 
Connection id:          121800
Current database:
Current user:           root at brego.sub01201311080.m.oraclevcn.com
SSL:                    Cipher in use is TLS_AES_128_GCM_SHA256, cert is UNKNOWN
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server:                 MySQL
Server version:         26.10.0-cloud MySQL Enterprise - Cloud
Protocol version:       10
Connection:             10.2.1.11 via TCP/IP
Server characterset:    utf8mb4
Db     characterset:    utf8mb4
Client characterset:    utf8mb4
Conn.  characterset:    utf8mb4
TCP port:               3306
Uptime:                 25 days 5 hours 24 min 48 sec
 
Threads: 6  Questions: 11118815  Slow queries: 0  Opens: 37924  Flush tables: 3  Open tables: 1433  Queries per second avg: 5.101
--------------




-- System Information:
Debian Release: 13.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.12.118+deb13-arm64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mariadb-client depends on:
ii  debianutils              5.23.2
ii  libc6                    2.41-12+deb13u4.1
ii  libconfig-inifiles-perl  3.000003-3+deb13u1
ii  libgcc-s1                14.2.0-19
ii  libpcre2-posix3          10.46-1~deb13u3
ii  libssl3t64               3.5.9-1~deb13u1
ii  libstdc++6               14.2.0-19
ii  mariadb-client-core      1:11.8.9+ds-0+deb13u1
ii  perl                     5.40.1-6+deb13u1
ii  zlib1g                   1:1.3.dfsg+really1.3.1-1+deb13u1

Versions of packages mariadb-client recommends:
pn  libdbd-mariadb-perl | libdbd-mysql-perl  <none>
pn  libdbi-perl                              <none>
ii  libterm-readkey-perl                     2.38-2+b4

mariadb-client suggests no packages.

-- no debconf information



More information about the pkg-mysql-maint mailing list