Skip to content

Commit 1c69026

Browse files
committed
feat(redis): Allow to use global default_certificates_bundle_path in ssl_context
Signed-off-by: Simon L. <[email protected]>
1 parent 594d220 commit 1c69026

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/RedisFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ private function getSslContext($config) {
135135
self::REDIS_EXTRA_PARAMETERS_MINIMAL_VERSION
136136
));
137137
}
138+
$rootCertPath = $config['ssl_context']['cafile'] ?? $this->config->getValue('default_certificates_bundle_path', null) ?? '';
139+
$config['ssl_context']['cafile'] = $rootCertPath;
138140
return $config['ssl_context'];
139141
}
140142
return null;

0 commit comments

Comments
 (0)