mirror of
https://github.com/vrana/adminer.git
synced 2025-08-22 06:02:57 +02:00
MySQL SSL: Allow disabling cert verification
This commit is contained in:
@@ -246,6 +246,9 @@ if (!defined("DRIVER")) {
|
||||
if (!empty($ssl['ca'])) {
|
||||
$options[PDO::MYSQL_ATTR_SSL_CA] = $ssl['ca'];
|
||||
}
|
||||
if (!empty($ssl['verify'])) {
|
||||
$options[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $ssl['verify'];
|
||||
}
|
||||
}
|
||||
$this->dsn(
|
||||
"mysql:charset=utf8;host=" . str_replace(":", ";unix_socket=", preg_replace('~:(\d)~', ';port=\1', $server)),
|
||||
|
Reference in New Issue
Block a user