php - MySQL ND SSL in PHP5.3.3 -
according http://www.php.net/manual/en/mysqlnd.overview.php mysqlnd supports ssl
does know of examples of setup of ssl connection mysqlnd?
is assumption use existing mysqli route under hood it's using mysqlnd?
the nd driver under hood. replaces old linked mysql c library php native library.
to use ssl connection, need use mysqli::ssl_set pass in certificate paramaters.
usage should pretty straight forward (assuming mysqli):
$db = new mysqli($host, $user, $pass, $db); $db->ssl_set($key, $cert, $ca, $capath, $cipher);
Comments
Post a Comment