Does Craft CMS support MySQL over SSL?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.Sign up to join this community
So, assuming your MySQL box is setup properly to use SSL and assuming the database user that Craft is using to connect to the box can connect over SSL, then you can do something like this to enable Craft to talk to MySQL over SSL:
'attributes' => array( PDO::MYSQL_ATTR_SSL_KEY => '/path/to/my/client-key.pem', PDO::MYSQL_ATTR_SSL_CERT => '/path/to/my/client-cert.pem', PDO::MYSQL_ATTR_SSL_CA => '/path/to/my/ca-cert.pem', ),
In Craft 2.x, this isn't currently possible. Craft 3, however, will expose the necessary client side configs so that if your MySQL box has an SSL cert installed and supports SSL, then you can configure Craft to connect via SSL.