PHP : Function Reference : MySQL Improved Extension : mysqli_ssl_set
flux
Here es little example to create a SSL Connection
<?php
$db = mysqlii_init();
/*
When you want so use a separate cnf
$test = $db->options(MYSQLI_EAD_DEFAULT_FILE,'myother.cnf');
*/
$db->ssl_set('server-key.pem','server-cert.pem',
'cacert.pem',NULL,NULL);
$db->real_connct('localhost','root','','mydb');
//Here some query
$db->close();
?>
|