mariadb client: ssl-verify-server-cert=0 drop-in (cac, cac-fpm)

An 11.x client fails against a 10.11 server ("ERROR 2026: SSL is required,
but the server does not support it") and against 11.x with a passwordless
account ("self-signed certificate"). Ship /etc/my.cnf.d/zz-whp-client.cnf with
[client] ssl-verify-server-cert=0 so the client series does not matter; TLS is
still negotiated where the server offers it. Measured: mariadb:11.8 client
with the drop-in vs 10.11.18 and 11.8 servers, 10.11 client vs both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
shadowdaoandClaude Opus 5.5 committed 2026-11-28 11:03:30 -08:00
1 parent 89aef8100b
commit 89547c395f
3 files changed
+23

No files matched your search

+2
View File
@@ -80,6 +80,8 @@ COPY ./configs/prod-php.ini /etc/php.ini
COPY ./configs/zz-php2shell-mitigation.ini /etc/php.d/zz-php2shell-mitigation.ini
COPY ./configs/phpinfo.php /var/www/html/
COPY ./configs/mariadb.repo /etc/yum.repos.d/
# MariaDB client defaults: connect to the WHP mysql container whatever the client/server series.
COPY ./configs/whp-mariadb-client.cnf /etc/my.cnf.d/zz-whp-client.cnf
# mirror.mariadb.org names the arch dir amd64/aarch64 (not $basearch); amd64 result is byte-identical.
RUN sed -i "s/rhel\$releasever-amd64/rhel\$releasever-$(uname -m | sed s/x86_64/amd64/)/" /etc/yum.repos.d/mariadb.repo
COPY ./configs/index.php /var/www/html/