Skip to content

Commit

Permalink
Fix mysqli ssl connection - certificate is not required to establish …
Browse files Browse the repository at this point in the history
…a secure connection
  • Loading branch information
michalsn committed Jun 27, 2021
1 parent f072c86 commit 84646f5
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 84646f5

Please sign in to comment.