Commit 8d679fe9 authored by Antonio.Suerte's avatar Antonio.Suerte

Local Setup Code [DO NOT MERGE THIS BRANCH live-local]

parent f912d780
Logs/ Logs/
\ No newline at end of file system/lib/marsys_data_conf.ini
documents/ads
.buildpath
.project
\ No newline at end of file
...@@ -26,11 +26,19 @@ class Cnnector extends CommonBase { ...@@ -26,11 +26,19 @@ class Cnnector extends CommonBase {
$db = $this -> getConfigValue(SECTION_DB, TARGET_DB_NAME); $db = $this -> getConfigValue(SECTION_DB, TARGET_DB_NAME);
$mysqli = mysqli_init(); $mysqli = mysqli_init();
mysqli_options($mysqli, MYSQLI_OPT_SSL_VERIFY_SERVER_CERT, true); // mysqli_options($mysqli, MYSQLI_OPT_SSL_VERIFY_SERVER_CERT, true);
$mysqli->ssl_set(NULL,NULL,"/var/www/html/db/rds-combined-ca-bundle.pem",NULL,NULL); //$mysqli->ssl_set(NULL,NULL,"/var/www/html/db/rds-combined-ca-bundle.pem",NULL,NULL);
$mysqli->real_connect($host, $username, $password, $db, $port, NULL, MYSQLI_CLIENT_SSL); $mysqli->real_connect(
$host,
$username,
$password,
$db,
$port,
NULL
//,MYSQLI_CLIENT_SSL
);
$this->con = $mysqli; $this->con = $mysqli;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment