MySQLi set_ssl method arguments

From: Date: Wed, 19 May 2004 19:57:13 +0000
Subject: MySQLi set_ssl method arguments
Groups: php.db 
Request: Send a blank email to php-db+get-34482@lists.php.net to get a copy of this message
I was wondering if anyone could shed some light on what an appropriate set of arguments would look like for the ssl_set method on a MySQLi object. I am trying to connect to an SSL-enabled MySQL server without much luck. I am confident that I am passing the certificate paths correctly, but once I get to the capath and and cipher list I am not sure what I need to be passing exactly. Here is what I have so far (works fine non-ssl) $mysqlconn = mysqli_init(); //I put all the keys and certificates in the same folder as the script for simplicity while testing. //As I stated, I am unsure about the last 2 arguments. $mysqlconn->ssl_set( 'client_key.pem', 'client_cert.pem', 'cacert.pem', './', 'X509' ); $mysqlconn->real_connect( 'databasehost.domainname.com', 'user', 'pass', 'dbaasename' ); Any help is greatly appreciated -TJ

« previous php.db (#34482) next »