MYSQLI_SSL_SET(3) 1 MYSQLI_SSL_SET(3)mysqli::ssl_set - Used for establishing secure connections using SSL
Object oriented style
SYNOPSIS
bool mysqli::ssl_set (string $key, string $cert, string $ca, string $capath, string $cipher)
DESCRIPTION
Procedural style
bool mysqli_ssl_set (mysqli $link, string $key, string $cert, string $ca, string $capath, string $cipher)
Used for establishing secure connections using SSL. It must be called before mysqli_real_connect(3). This function does nothing unless
OpenSSL support is enabled.
Note that MySQL Native Driver does not support SSL before PHP 5.3.3, so calling this function when using MySQL Native Driver will result
in an error. MySQL Native Driver is enabled by default on Microsoft Windows from PHP version 5.3 onwards.
PARAMETERS
o $
link -Procedural style only: A link identifier returned by mysqli_connect(3) or mysqli_init(3)
o $key
- The path name to the key file.
o $cert
- The path name to the certificate file.
o $ca
- The path name to the certificate authority file.
o $capath
- The pathname to a directory that contains trusted SSL CA certificates in PEM format.
o $cipher
- A list of allowable ciphers to use for SSL encryption.
Any unused SSL parameters may be given as NULL
RETURN VALUES
This function always returns TRUE value. If SSL setup is incorrect mysqli_real_connect(3) will return an error when you attempt to con-
nect.
SEE ALSO mysqli_options(3), mysqli_real_connect(3).
PHP Documentation Group MYSQLI_SSL_SET(3)
Hi there,
After setup my apache server, I have using mkcert.sh file to generate a SSL key. But when I tried to start my apache server it is prompted me to enter the pass phrase password, in fact I had entered the same correct password which I provided during the key generation and it give me the... (0 Replies)
hi all
i have a unix machine (FBD). I have Also installed java of Version (j2sdk1.4.1_07) on unix machine. Now i
want to Call C Native function in Java Which is declared as Native. i am doing this by following steps:
1) Making Echo.java File Which is having The following lines of code.... (5 Replies)
Hi,
I was trying to enable SSL cert on WebLogic 10.3 (CentOS),
I don't have a third party Certificate Authority(C.A) to get the .csr file certified.
Is there an alternate way that replaces the step sending .csr file to CA ?
Thanks
SZS (1 Reply)
Hi guys,
I'm trying to generate a key using the genkey command in centos 6.4 and RHEL6.4, Every thing seems to go cool but I get this error message bad certificate request error -8016 and no key/cert is generated. I don't want use the many openssl(s) commands instead since genkey is a shourtcut... (4 Replies)
Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup.
However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)