mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(federation): respect sharing.federation.allowSelfSignedCertificates for 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>
This commit is contained in:
parent
e22914b5ff
commit
68b9493a51
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue