If this can help anybody else, for Fuel 1.8 and PHP7.0.19
This is how I extended the new PDO class: [code] if ($this->_config['connection']['usessl'] && $this->_config['connection']['sslattributes']) { // Add any ssl attributes defined in the config file $this->_config['attrs'] += $this->_config['connection']['sslattributes']; } [/code]
Then the options for the db connection. [code] 'usessl' => true, 'sslattributes' => array( \PDO::MYSQL_ATTR_SSL_KEY => APPPATH.'config/production/certs/client-key.pem', \PDO::MYSQL_ATTR_SSL_CERT => APPPATH.'config/production/certs/client-cert.pem', \PDO::MYSQL_ATTR_SSL_CA => APPPATH.'config/production/certs/server-ca.pem', \PDO::MYSQL_ATTR_SSL_CIPHER => 'DHE-RSA-AES256-SHA', \PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false, ),
[/code]
Important is the last constant, in case of self signed SSL certificates (the default when using mysql_ssl_rsa_setup). Works since april 2017.