Skip to content

Commit 7868c0d

Browse files
authored
Allow ssl connections (#89)
* Allow ssl connections * Update src/Ql/MySQLiConnection.php
1 parent d93e0ab commit 7868c0d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Ql/MySQLiConnection.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ public function _connect()
6464
$connection->options($key, $value);
6565
}
6666

67+
$caCert = $this->_config()->getItem('ca_certificate');
68+
if($caCert)
69+
{
70+
$connection->ssl_set(null, null, $caCert, null, null);
71+
}
72+
6773
$socket = $this->_config()->getItem('socket');
6874
if($socket)
6975
{

0 commit comments

Comments
 (0)