Skip to content

Commit

Permalink
Merge pull request #4885 from michalsn/fix/mysqli-ssl-connection-requ…
Browse files Browse the repository at this point in the history
…irements

Fix mysqli ssl connection
  • Loading branch information
paulbalandan authored Jun 28, 2021
2 parents 1756de6 + 84646f5 commit f887865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/Database/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f887865

Please sign in to comment.