From 9c744e401edb1d2fc31c77b4b156f47be06ce367 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Oct 2019 10:49:40 -0500 Subject: Cloud storage: remove outdated certificate hack The old server certificates where not recognized on some older platform, so we hardcoded the hex digest of the valid certificate and ignored the error. Those certificates have been replaced last week, so there is no point to this hack anymore - also, we should always show the SSL error, not just in verbose mode. Signed-off-by: Dirk Hohndel --- core/checkcloudconnection.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'core') diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp index e8e48d8f6..98b87aef3 100644 --- a/core/checkcloudconnection.cpp +++ b/core/checkcloudconnection.cpp @@ -78,24 +78,9 @@ bool CheckCloudConnection::checkServer() void CheckCloudConnection::sslErrors(const QList &errorList) { - if (verbose) { - qDebug() << "Received error response trying to set up https connection with cloud storage backend:"; - for (QSslError err: errorList) { - qDebug() << err.errorString(); - } - } - QSslConfiguration conf = reply->sslConfiguration(); - QSslCertificate cert = conf.peerCertificate(); - QByteArray hexDigest = cert.digest().toHex(); - if (reply->url().toString().contains(prefs.cloud_base_url) && - hexDigest == "13ff44c62996cfa5cd69d6810675490e") { - if (verbose) - qDebug() << "Overriding SSL check as I recognize the certificate digest" << hexDigest; - reply->ignoreSslErrors(); - } else { - if (verbose) - qDebug() << "got invalid SSL certificate with hex digest" << hexDigest; - } + qDebug() << "Received error response trying to set up https connection with cloud storage backend:"; + for (QSslError err: errorList) + qDebug() << err.errorString(); } // helper to be used from C code -- cgit v1.2.3-70-g09d2