The mysqli_ssl_set() function is used to establish encrypted connections using the SSL protocol.
This is essential when your application connects to the server over untrusted networks.
EXAMPLE
RESULT
The result will be displayed here...
connection: Required connection object (created with mysqli_init()).
key: The path to the key file (Private Key).
cert: The path to the certificate file (Certificate).
ca: The path to the certificate authority file (Certificate Authority).
capath: The path to a directory containing certificates in PEM format.
cipher: A list of allowable ciphers for encryption.
Important: This function only works if OpenSSL support is enabled on the server. You must call
it before using the mysqli_real_connect() function.
Enables data encryption between the website and the database.
Protects against interception of passwords and sensitive data.
Requires use in combination with mysqli_init() and mysqli_real_connect().
We use cookies to ensure a better user experience and website functionality.