diff --git a/system/Database/MySQLi/Connection.php b/system/Database/MySQLi/Connection.php index e8acade01f61..487c0d876650 100644 --- a/system/Database/MySQLi/Connection.php +++ b/system/Database/MySQLi/Connection.php @@ -160,12 +160,13 @@ public function connect(bool $persistent = false) } } - $clientFlags += MYSQLI_CLIENT_SSL; $this->mysqli->ssl_set( $ssl['key'] ?? null, $ssl['cert'] ?? null, $ssl['ca'] ?? null, $ssl['capath'] ?? null, $ssl['cipher'] ?? null ); } + + $clientFlags += MYSQLI_CLIENT_SSL; } try {