[From nobody Thu Dec  3 08:37:05 2026
Received: (at submit) by bugs.debian.org; 23 Nov 2026 11:33:47 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-18.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,SPF_HELO_PASS,SPF_PASS,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 82; hammy, 150; neutral, 159; spammy,
 0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian, 0.000-+--HTo:N*Bug, 0.000-+--HTo:N*System
Return-path: &lt;bjorn@mork.no&gt;
Received: from brego.mork.no ([2603:c026:301:5555::5]:39906)
 by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;bjorn@mork.no&gt;) id 1xVSIu-005THP-0L
 for submit@bugs.debian.org; Mon, 23 Nov 2026 11:33:47 +0000
Received: by brego.mork.no (Postfix, from userid 1000)
 id F0C8422E; Mon, 23 Nov 2026 11:26:39 +0000 (UTC)
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?utf-8?q?Bj=C3=B8rn_Mork?= &lt;bjorn@mork.no&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: mariadb-client: ssl-verify-server-cert=false is broken
Message-ID: &lt;179543319996.2892.8235874843644623604.reportbug@brego.mork.no&gt;
X-Mailer: reportbug 13.2.0
Date: Mon, 23 Nov 2026 11:26:39 +0000
X-Greylist: delayed 424 seconds by postgrey-1.37 at buxtehude;
 Mon, 23 Nov 2026 11:33:47 UTC
Delivered-To: submit@bugs.debian.org

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@brego:~$ mysql --ssl-verify-server-cert=false
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
bjorn@brego:~$ mysql --ssl-verify-server-cert=true
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
bjorn@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 &quot;ssl-verify-server-cert&quot; 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@brego:~$ mysql --ssl-verify-server-cert=true
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
bjorn@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@10.2.1.11 ((none)) W&gt; \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@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  &lt;none&gt;
pn  libdbi-perl                              &lt;none&gt;
ii  libterm-readkey-perl                     2.38-2+b4

mariadb-client suggests no packages.

-- no debconf information
]