Encrypted DB connection

Status
Not open for further replies.

asishp42

New Member
Dec 2, 2021
2
0
1
41
Hello Experts,

Need your input, does the FusionPBX supports encrypted DB connection to external Postgres/MYSQL server.

I tried changing the config file ( /etc/fusionpbx/config.php , /etc/fusionpbx/config.lua) but no success.

$db_host = 'XXX.XXX.XXX.XXX';
$db_port = 'XXXX';
$db_name = 'XXXXXXXXXXXXXXXXX';
$db_username = 'XXXXXXXXXXXXXXXXX';
$db_password = 'XXXXXXXXXXXXXXXXX';

$db_SSLMode = 'REQUIRED';
$db_SSLCA = '/etc/ssl/db/cert.pem';
$db_SSLCert = '/etc/ssl/db/client-cert.pem';
$db_SSLKey = '/etc/ssl/db/client-key.pem';
Or
$db_ssl = array( 'ssl_key' => '/etc/ssl/db/client-key.pem', 'ssl_cert' => '/etc/ssl/db/client-cert.pem', 'ssl_ca' => '/etc/ssl/db/cert.pem');


Any pointer will be really helpful.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Have a look at
/var/www/fusionpbx/resources/pdo.php

You probably need to set:
$db_secure
and
$db_certauthority

SSLCert and SSLKey would be configured in PostgreSql server.
 
  • Like
Reactions: johnnyorange
Status
Not open for further replies.