Hello together,
I am experiencing an issue with SSL connections for the Database Host in Pterodactyl.
System setup:
Pterodactyl Panel is running on a separate server
MariaDB (latest version) is running on a dedicated database server
The connection between the panel and the database is secured via SSL
The standard database user (pterodactyl) can connect via SSL without any issues
The problem only occurs when adding a new Database Host in Pterodactyl
Problem description:
When trying to add a Database Host in Pterodactyl using pterodactyl_admin, the following error appears:
SQLSTATE[HY000] [1045] Access denied for user 'pterodactyl_admin'@'PANEL-IP' (using password: YES) (Connection: dynamic, SQL: SELECT 1 FROM dual)
Running php artisan migrate:status does not show any errors.
However, I can connect successfully using the same user and certificates via MySQL CLI:
mysql -u pterodactyl_admin -p -h DB-SERVER-IP
--ssl-ca=/etc/mysql/ssl/ca-cert.pem
--ssl-cert=/etc/mysql/ssl/client-cert.pem
--ssl-key=/etc/mysql/ssl/client-key.pem
This suggests that Pterodactyl is not correctly applying the SSL certificates for the Database Host.
Current configuration steps:
SSL is enabled in MariaDB (have_ssl=YES)
The user pterodactyl_admin is set to REQUIRE SSL
.env and database.php contain the correct SSL certificates for the standard database user
Pterodactyl can successfully connect as pterodactyl
The issue only occurs when adding a Database Host
Questions:
How can I make Pterodactyl use the SSL certificates for the Database Host (pterodactyl_admin) as well?
Is there a specific configuration in Pterodactyl to enforce SSL for Database Hosts?