mirror of
https://github.com/nextcloud/server.git
synced 2025-07-21 23:22:24 +00:00
Merge pull request #53972 from nextcloud/bug/noid/self-signed-trusted-servers-address-book-sync
fix(federation): respect sharing.federation.allowSelfSignedCertificat…
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user