#556 new
Jonas

MySQL connectors doesn't support SSL

Reported by Jonas | April 7th, 2010 @ 04:01 PM | in Future

Today, at WebGoal, we had to setup a secure connection to a MySQL server.
As the CakePHP's MySql connectors doesn't support SSL, we created a new subclass (attached) that overwrites the connect method.

After that, we added the following keys to our database config:

'flags' => MYSQL_CLIENT_SSL,
'ssl' => array(
    'server-key'  => '../config/mysql_ssl_herbertt/server-key.pem',
    'server-cert' => '../config/mysql_ssl_herbertt/server-cert.pem',
    'ca-cert'     => '../config/mysql_ssl_herbertt/ca-cert.pem'
)

I suggest you to incorporate this functionality into the CakePHP's MySQL connectors, DboMysql and DboMysqli.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Source available from github

Repository is at http://github.com/cakephp/cakephp

Creating a bug report

When creating a bug report, please include as much relevant information as possible. Please include code to reproduce the issue. Or even better, make a unit test. Either change an existing test or add a new test to show that the expected behavior is not occuring.

People watching this ticket

Referenced by