Allow the core to use expired certificates.
authorFelix Geyer <debfx@fobos.de>
Tue, 27 Sep 2011 14:02:22 +0000 (16:02 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 22 May 2012 19:25:29 +0000 (21:25 +0200)
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

index 4080f81..987db4b 100644 (file)
@@ -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";