1
0
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:
araisch
2022-02-10 13:05:32 +01:00
committed by Jakub Vrana
parent 490d274662
commit 224cbfed56
2 changed files with 4 additions and 1 deletions

View File

@@ -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)),