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-16 12:36:45 +0200
commit68b9493a51681fbeb22f949d5d571e853bfe143b (patch)
tree19affc927f53db814f33d45403f9663b4435c96a
parente22914b5ff3f7720780f00c57fb8f88633e18d46 (diff)
downloadnextcloud-server-bug/noid/self-signed-trusted-servers-address-book-sync.tar.gz
nextcloud-server-bug/noid/self-signed-trusted-servers-address-book-sync.zip
fix(federation): respect sharing.federation.allowSelfSignedCertificates for address book syncbug/noid/self-signed-trusted-servers-address-book-sync
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(