From eb1b92bb7ef1fa6db755aa8d28a078fa0e8d67d3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 4 Apr 2017 21:56:01 -0500 Subject: [PATCH] Cleanup: set the default examples and program settings for connecting to the database to non-ssl This simplifies the work necessary for testing and initial setups. Setting up a cert is extra work, so do no use it by default for database calls. --- examples/http.php | 3 ++- examples/test.php | 3 ++- program/reservation/index.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/http.php b/examples/http.php index 93f910d..8e02d09 100644 --- a/examples/http.php +++ b/examples/http.php @@ -414,7 +414,8 @@ if (!is_null($password)) { $connection_string->set_password($password); } - $connection_string->set_ssl_mode('require'); + #$connection_string->set_ssl_mode('require'); + $connection_string->set_ssl_mode('disable'); $connection_string->set_connect_timeout(4); $database->set_connection_string($connection_string); unset($connection_string); diff --git a/examples/test.php b/examples/test.php index 5f6ae0c..992ccce 100755 --- a/examples/test.php +++ b/examples/test.php @@ -744,7 +744,8 @@ $connection_string->set_database('reservation'); $connection_string->set_user($username); $connection_string->set_password($password); - $connection_string->set_ssl_mode('require'); + #$connection_string->set_ssl_mode('require'); + $connection_string->set_ssl_mode('disable'); $connection_string->set_connect_timeout(4); $database->set_connection_string($connection_string); unset($connection_string); diff --git a/program/reservation/index.php b/program/reservation/index.php index 669daec..f1b6326 100644 --- a/program/reservation/index.php +++ b/program/reservation/index.php @@ -42,7 +42,8 @@ $settings['database_user'] = 'u_reservation_public'; $settings['database_password'] = NULL; $settings['database_timeout'] = 4; - $settings['database_ssl_mode'] = 'require'; + #$settings['database_ssl_mode'] = 'require'; + $settings['database_ssl_mode'] = 'disable'; $settings['database_create_account_host'] = '127.0.0.1'; $settings['database_create_account_port'] = 5433; -- 1.8.3.1