mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Merge pull request #1366 from nextcloud/fix/client_side_cert
Add proper CA to client side certificate connection
This commit is contained in:
commit
f9947334f6
1 changed files with 6 additions and 0 deletions
|
@ -392,6 +392,12 @@ void OwncloudSetupPage::slotCertificateAccepted()
|
|||
// cert will come via the HttpCredentials
|
||||
sslConfiguration.setLocalCertificate(_ocWizard->_clientSslCertificate);
|
||||
sslConfiguration.setPrivateKey(_ocWizard->_clientSslKey);
|
||||
|
||||
// Be sure to merge the CAs
|
||||
auto ca = sslConfiguration.systemCaCertificates();
|
||||
ca.append(clientCaCertificates);
|
||||
sslConfiguration.setCaCertificates(ca);
|
||||
|
||||
acc->setSslConfiguration(sslConfiguration);
|
||||
|
||||
// Make sure TCP connections get re-established
|
||||
|
|
Loading…
Reference in a new issue