mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
return default bundle when there is an error getting the bundle
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
63dd72fda0
commit
a13ae6b64f
1 changed files with 11 additions and 7 deletions
|
|
@ -240,15 +240,19 @@ class CertificateManager implements ICertificateManager {
|
|||
* @return string
|
||||
*/
|
||||
public function getAbsoluteBundlePath(): string {
|
||||
if (!$this->hasCertificates()) {
|
||||
try {
|
||||
if (!$this->hasCertificates()) {
|
||||
return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
|
||||
}
|
||||
|
||||
if ($this->needsRebundling()) {
|
||||
$this->createCertificateBundle();
|
||||
}
|
||||
|
||||
return $this->view->getLocalFile($this->getCertificateBundle());
|
||||
} catch (\Exception $e) {
|
||||
return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
|
||||
}
|
||||
|
||||
if ($this->needsRebundling()) {
|
||||
$this->createCertificateBundle();
|
||||
}
|
||||
|
||||
return $this->view->getLocalFile($this->getCertificateBundle());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue