provide logs of SSL errors including the certificate chain
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 12 Oct 2021 16:14:10 +0000 (18:14 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Wed, 13 Oct 2021 15:20:52 +0000 (15:20 +0000)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/account.cpp

index 22d8142c1e022111c0dbe1b685275f014c098904..a58c61a40cd2df7872a9c369320edf6392762202 100644 (file)
@@ -456,6 +456,9 @@ void Account::slotHandleSslErrors(QNetworkReply *reply, QList<QSslError> errors)
                      << "\n";
     }
 
+    qCInfo(lcAccount()) << "ssl errors" << out;
+    qCInfo(lcAccount()) << reply->sslConfiguration().peerCertificateChain();
+
     bool allPreviouslyRejected = true;
     foreach (const QSslError &error, errors) {
         if (!_rejectedCertificates.contains(error.certificate())) {