bee
💖 Chevereto Fan
Hi.
What did I need to change to use a db connection through SSL?
After last night my database crashed again, I want to test the SQL server from Google Cloud. There is an option to enable SSL connections to the SQL server and I want to try this. Connections without SSL works fine - but when my projects already SSL secured, so I should also secure the db connection.
For this I had to add:
The settings.php has no options to add certs.
Is Chevereto ready to use SSL database connections?
What did I need to change to use a db connection through SSL?
After last night my database crashed again, I want to test the SQL server from Google Cloud. There is an option to enable SSL connections to the SQL server and I want to try this. Connections without SSL works fine - but when my projects already SSL secured, so I should also secure the db connection.
For this I had to add:
Code:
$pdo = new PDO('mysql:host=ip;dbname=db', 'user', 'pass', 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'
)
);
The settings.php has no options to add certs.
Is Chevereto ready to use SSL database connections?