Connect to MYSQL with SSL

Has anybody out there a working NC installation which uses SSL to connect to MariaDB/MySQL on a different server?

If so, can you share your config.php file with me?

I tried my very best by setting the dbdriverotions in the conifg.php
’dbdriveroptions’ => array (
PDO::MYSQL_ATTR_SSL_KEY => ‘/etc/mysql/ssl/client-key.pem’,
PDO::MYSQL_ATTR_SSL_CERT => ‘/etc/mysql/ssl/client-cert.pem’,
PDO::MYSQL_ATTR_SSL_CA => ‘/etc/mysql/ssl/ca-cert.pem’,
)
and set the ‘require SSL’ flag for my DB user.

But at least for me this throws with an ‘Doctrine\DBAL\DBALExecpion’ SQLSTATE[HY000]

2 Likes

Hey all, did you get a solution or workaround for this? I am having similar issues with a managed MySQL DB and want to connect it with an SSL connection. Looking forward to your replies. Best

Possible duplicate of: MySQL SSL connection