aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-12-04 13:37:10 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-12-04 13:37:10 +0100
commitb1e9752169e60d0cf894a0d4ebec35ff07f7d70c (patch)
tree82594af8cb19d75e8556c896c8a97ab3d8a87b81 /lib/private
parenta53871f6290f12341f4b2a9531e17bc2f932ba69 (diff)
downloadnextcloud-server-b1e9752169e60d0cf894a0d4ebec35ff07f7d70c.tar.gz
nextcloud-server-b1e9752169e60d0cf894a0d4ebec35ff07f7d70c.zip
Revert "Do not read certificate bundle from data dir by default"
This reverts commit 18b0d753f2d76da10fefbf9a34e22dfdcbdc93b0.
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Http/Client/Client.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php
index af4ebc52727..eedd34774c5 100644
--- a/lib/private/Http/Client/Client.php
+++ b/lib/private/Http/Client/Client.php
@@ -98,18 +98,18 @@ class Client implements IClient {
}
private function getCertBundle(): string {
+ if ($this->certificateManager->listCertificates() !== []) {
+ return $this->certificateManager->getAbsoluteBundlePath();
+ }
+
// If the instance is not yet setup we need to use the static path as
// $this->certificateManager->getAbsoluteBundlePath() tries to instantiate
// a view
- if ($this->config->getSystemValue('installed', false) === false) {
- return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
- }
-
- if ($this->certificateManager->listCertificates() === []) {
- return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
+ if ($this->config->getSystemValue('installed', false)) {
+ return $this->certificateManager->getAbsoluteBundlePath(null);
}
- return $this->certificateManager->getAbsoluteBundlePath();
+ return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
}
/**