mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°1260 MySQL TLS connection : use less rectrictive flag (no server cert check)
SVN:trunk[5376]
This commit is contained in:
@@ -217,7 +217,7 @@ class CMDBSource
|
||||
|
||||
if ($bTlsEnabled)
|
||||
{
|
||||
$iFlags = MYSQLI_CLIENT_SSL;
|
||||
$iFlags = MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT; // instead of MYSQLI_CLIENT_SSL
|
||||
$oMysqli->ssl_set($sTlsKey, $sTlsCert, $sTlsCa, $sTlsCaPath, $sTlsCipher);
|
||||
}
|
||||
$oMysqli->real_connect($sServer, $sUser, $sPwd, '', $iPort,
|
||||
|
||||
Reference in New Issue
Block a user