Merge pull request #1366 from nextcloud/fix/client_side_cert

Add proper CA to client side certificate connection
This commit is contained in:
Camila Ayres 2019-08-02 18:38:27 +02:00 committed by GitHub
commit f9947334f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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