Skip to content

"TLS/SSL error: SSL is required, but the server does not support it" in Debian Trixie #1670

Open
@zen-fu

Description

@zen-fu

Describe the Bug

This module defaults to ssl = false in the server, but "Starting from 11.4 MariaDB encrypts the transmitted data between the server and clients by default (they also say "unless the server and client run on the same host" but that's not what I experience in Debian Trixie).

Deploying MariaDB with this module in a fresh Debian Trixie install leads to:

# mysql
ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it

Expected Behavior

Connecting to the server should succeed.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Start from a fresh Debian Trixie installation.
  2. Install Puppet and Git
  3. Download latest versions of puppetlabs-stdlib and puppetlabs-mysql
  4. Puppet-apply include mysql::server

This should be enough to reproduce the issue:

apt-get update && apt-get -y install git puppet
mkdir -p /root/modules
git clone --depth 1 --branch v9.7.0 https://github.com/puppetlabs/puppetlabs-stdlib.git /root/modules/stdlib
git clone --depth 1 --branch v16.2.0 https://github.com/puppetlabs/puppetlabs-mysql.git /root/modules/mysql
puppet apply --modulepath /root/modules -e 'include mysql::server'

Then:

# mysql
ERROR 2026 (HY000): TLS/SSL error: SSL is required, but the server does not support it

Environment

  • Version 16.2.0
  • Platform Debian Trixie (MariaDB 11.8.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions