aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2025-07-16 14:35:58 +0200
committerGitHub <noreply@github.com>2025-07-16 14:35:58 +0200
commit1dbd22e317c09a1471befe995755f0523573b2b7 (patch)
tree19affc927f53db814f33d45403f9663b4435c96a
parente22914b5ff3f7720780f00c57fb8f88633e18d46 (diff)
parent68b9493a51681fbeb22f949d5d571e853bfe143b (diff)
downloadnextcloud-server-1dbd22e317c09a1471befe995755f0523573b2b7.tar.gz
nextcloud-server-1dbd22e317c09a1471befe995755f0523573b2b7.zip
Merge pull request #53972 from nextcloud/bug/noid/self-signed-trusted-servers-address-book-sync
fix(federation): respect sharing.federation.allowSelfSignedCertificat…
-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(