sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.53k stars 290 forks source link

Not able to connect to MySQL database using TLS #1293

Open soerenschneider opened 1 month ago

soerenschneider commented 1 month ago

Baikal version: 0.9.5

Expected behaviour: Connecting to a MySQL/MariaDB database that requires encrypted connections works.

Current behaviour: Connecting to MySQL database that enforces encryption doesn't work, the wizard to configure the database shows the following error.

Validation error Baïkal was not able to establish a connexion to the MySQL database as configured. MySQL says: SQLSTATE[HY000] [3159] Connections using insecure transport are prohibited while --require_secure_transport=ON.

Steps to reproduce:

  1. Setup a MySQL database using TLS certs using secure transport
  2. Spin up a fresh Baikal server and try to point it to the database