⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_ssl_set()

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...
  1. connection: Required connection object (created with mysqli_init()).
  2. key: The path to the key file (Private Key).
  3. cert: The path to the certificate file (Certificate).
  4. ca: The path to the certificate authority file (Certificate Authority).
  5. capath: The path to a directory containing certificates in PEM format.
  6. 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.