Hi Guys
I'm not directly involved in PH dev so I ask you.
Could You implement settings for the SSL database connection?
Currently, I'm using a simple hack:
@@ -71,6 +71,12 @@ final class AphrontMySQLiDatabaseConnection $conn->options(MYSQLI_OPT_CONNECT_TIMEOUT, $timeout); } + /** + * CUSTOM CODE! + */ + $conn->options(MYSQLI_OPT_SSL_VERIFY_SERVER_CERT, true); + $conn->ssl_set('/folder/client-key.pem', '/folder/client-cert.pem', '/folder/ca.pem', NULL,NULL); + if ($this->getPersistent()) { $host = 'p:'.$host; }
It will be nice to have an official config for it.