Quantcast
Channel: ProjeQtOr free project management software - ProjeQtOr free project management software - Recent Topics - ProjeQtOr
Viewing all articles
Browse latest Browse all 6799

[SOLVED] Add SSL settings for mysql PDO connection - by: desperados

$
0
0
Hi everybody !

My MySQL connection requires SSL. So, i modified these two files :

/usr/share/projeqtor/projeqtor/model/persistence/Sql.php at line 280 :
self::$connexion = new PDO($dsn, self::$dbUser, self::$dbPassword,
array(
            \PDO::MYSQL_ATTR_SSL_KEY    =>'/path/to/my/client-key.pem',
            \PDO::MYSQL_ATTR_SSL_CERT=>'/path/to/my/client-cert.pem',
            \PDO::MYSQL_ATTR_SSL_CA    =>'/path/to/my/ca-cert.pem'
        ));

/usr/share/projeqtor/projeqtor/tool/configCheck.php at line 87 :
$connexion = new PDO($dsn, $param['DbUser'], $param['DbPassword']
array(
            \PDO::MYSQL_ATTR_SSL_KEY    =>'/path/to/my/client-key.pem',
            \PDO::MYSQL_ATTR_SSL_CERT=>'/path/to/my/client-cert.pem',
            \PDO::MYSQL_ATTR_SSL_CA    =>'/path/to/my/ca-cert.pem'
        ));
and at line 108 :
        $cnxDb = new PDO($dsn, $param['DbUser'], $param['DbPassword']
array(
            \PDO::MYSQL_ATTR_SSL_KEY    =>'/path/to/my/client-key.pem',
            \PDO::MYSQL_ATTR_SSL_CERT=>'/path/to/my/client-cert.pem',
            \PDO::MYSQL_ATTR_SSL_CA    =>'/path/to/my/ca-cert.pem'
        ));

At each update, i have to modify these files.
Can you take in consideration this point in your future evolutions ?

Viewing all articles
Browse latest Browse all 6799

Trending Articles