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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -