MysqlndUhConnection::sslSet
Used for establishing secure connections using SSL
&reftitle.description;
public boolMysqlndUhConnection::sslSet
mysqlnd_connectionconnection
stringkey
stringcert
stringca
stringcapath
stringcipher
Used for establishing secure connections using SSL.
&reftitle.parameters;
connection
Mysqlnd connection handle. Do not modify!
key
The path name to the key file.
cert
The path name to the certificate file.
ca
The path name to the certificate authority file.
capath
The pathname to a directory that contains trusted SSL CA certificates in PEM format.
cipher
A list of allowable ciphers to use for SSL encryption.
&reftitle.returnvalues;
Returns &true; on success.
Otherwise, returns &false;
&reftitle.examples;
MysqlndUhConnection::sslSet example
ssl_set("key", "cert", "ca", "capath", "cipher");
?>
]]>
&example.outputs;
NULL,
1 => 'key',
2 => 'cert',
3 => 'ca',
4 => 'capath',
5 => 'cipher',
))
proxy::sslSet returns true
]]>
&reftitle.seealso;
mysqlnd_uh_set_connection_proxy
mysqli_ssl_set