diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index 67b82a44ab791..265b6e8a43ffa 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -205,6 +205,11 @@ protected function paramCredentialProvider(): callable { } protected function getCertificateBundlePath(): ?string { + $customCaBundle = $this->params['ca_bundle']; + if (!empty($customCaBundle)) { + return $customCaBundle; + } + if ((int)($this->params['use_nextcloud_bundle'] ?? '0')) { // since we store the certificate bundles on the primary storage, we can't get the bundle while setting up the primary storage if (!isset($this->params['primary_storage'])) {