Skip to content

Commit 3626bfd

Browse files
committed
feat(pgsql_ssl): Allow to use global default_certificates_bundle_path for pgsql
Signed-off-by: Simon L. <[email protected]>
1 parent 594d220 commit 3626bfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/DB/ConnectionFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ public function createConnectionParams(string $configPrefix = '', array $additio
202202
$pgsqlSsl = $this->config->getValue('pgsql_ssl', false);
203203
if (is_array($pgsqlSsl)) {
204204
$connectionParams['sslmode'] = $pgsqlSsl['mode'] ?? '';
205-
$connectionParams['sslrootcert'] = $pgsqlSsl['rootcert'] ?? '';
205+
$rootCertPath = $pgsqlSsl['rootcert'] ?? $this->config->getValue('default_certificates_bundle_path', null) ?? '';
206+
$connectionParams['sslrootcert'] = $rootCertPath;
206207
$connectionParams['sslcert'] = $pgsqlSsl['cert'] ?? '';
207208
$connectionParams['sslkey'] = $pgsqlSsl['key'] ?? '';
208209
$connectionParams['sslcrl'] = $pgsqlSsl['crl'] ?? '';

0 commit comments

Comments
 (0)