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

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -