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.
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);
$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);
$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;