Skip to content

Commit

Permalink
Allow ssl connections (#89)
Browse files Browse the repository at this point in the history
* Allow ssl connections

* Update src/Ql/MySQLiConnection.php
  • Loading branch information
cleeve committed Aug 28, 2024
1 parent d93e0ab commit 7868c0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Ql/MySQLiConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public function _connect()
$connection->options($key, $value);
}

$caCert = $this->_config()->getItem('ca_certificate');
if($caCert)
{
$connection->ssl_set(null, null, $caCert, null, null);
}

$socket = $this->_config()->getItem('socket');
if($socket)
{
Expand Down

0 comments on commit 7868c0d

Please sign in to comment.