aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2025-07-16 12:36:45 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2025-07-17 12:29:56 +0200
commit7a4887953d5a336d920d72772b6a4f48827a9124 (patch)
tree674ee8a131bc9d2024a8f758e7231bd632d80cf1
parent6a4f6e26c33155a94e0cf23d446557b4e6afe92d (diff)
downloadnextcloud-server-backport/53972/stable31.tar.gz
nextcloud-server-backport/53972/stable31.zip
fix(federation): respect sharing.federation.allowSelfSignedCertificates for address book syncbackport/53972/stable31
The configuration option, to accept self-signed certificates, is now also used when syncing address books. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--apps/dav/lib/CardDAV/SyncService.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php
index c31a70b2aa5..4a75f8ced6c 100644
--- a/apps/dav/lib/CardDAV/SyncService.php
+++ b/apps/dav/lib/CardDAV/SyncService.php
@@ -168,7 +168,8 @@ class SyncService {
'auth' => [$userName, $sharedSecret],
'body' => $this->buildSyncCollectionRequestBody($syncToken),
'headers' => ['Content-Type' => 'application/xml'],
- 'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT)
+ 'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT),
+ 'verify' => !$this->config->getSystemValue('sharing.federation.allowSelfSignedCertificates', false),
];
$response = $client->request(
@@ -189,6 +190,7 @@ class SyncService {
$options = [
'auth' => [$userName, $sharedSecret],
+ 'verify' => !$this->config->getSystemValue('sharing.federation.allowSelfSignedCertificates', false),
];
$response = $client->get(