From 61c8d84d1c849373e0f115dc748ed45cff95287d Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 27 Sep 2011 16:02:22 +0200 Subject: [PATCH 1/1] Allow the core to use expired certificates. The core should only display a warning but not ignore the certificate if it's expired. This is especially useful for self-signed certificates. --- src/core/sslserver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/sslserver.cpp b/src/core/sslserver.cpp index 4080f814..987db4ba 100644 --- a/src/core/sslserver.cpp +++ b/src/core/sslserver.cpp @@ -114,8 +114,7 @@ bool SslServer::setCertificate(const QString &path) { return false; } if(!_cert.isValid()) { - quWarning() << "SslServer: Invalid certificate"; - return false; + quWarning() << "SslServer: Invalid certificate (most likely expired)"; } if(_key.isNull()) { quWarning() << "SslServer:" << qPrintable(path) << "contains no key data"; -- 2.20.1