We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e31bf0 commit e3370edCopy full SHA for e3370ed
1 file changed
src/Adapter/Mysql.php
@@ -43,6 +43,13 @@ public function getOptions(Config $config)
43
if (isset($config->ssl_cipher)) {
44
$options[PDO::MYSQL_ATTR_SSL_CIPHER] = $config->ssl_cipher;
45
}
46
+
47
+ if (
48
+ defined('PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT')
49
+ && isset($config->ssl_do_not_verify_server_cert)
50
+ ) {
51
+ $options[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = (bool) $config->ssl_do_not_verify_server_cert;
52
+ }
53
54
55
return $options;
0 commit comments