title: Qt & SSL, Handshake failed
body: <p>I have a problem. I've made a Qt application which is connecting to a https site.
  On my working machine, everything works fine. When I try to test my application on a clean Windows 7 machine, I observed the following issue: </p>
  
  <p>After I have installed a <strong>fresh Win7 machine</strong> (installed all updates), after starting my application, I get a <strong>SSL Handshake failed error</strong>, SIGNAL(sslErrors(QNetworkReply*,QList)) is emitted with two empty error strings and  <strong>error = QSslError::NoError</strong>.
  I was really searching the whole day why this happens, also could reproduce it with examples\network\securesocketclient\release\securesocketclient and domain "google.com".</p>
  
  <p>Now, I found out, that once I have started the internet explorer accessing <a href="https://www.google.com" rel="noreferrer">https://www.google.com</a>, my application is also working as expected and no further handshake errors are coming. </p>
  
  <p>BTW, it does not matter which site you are accessing - this is not related to google.com.</p>
  
  <p>Can someone explain to me why this happens? Is it a bug in OpenSSL, or Qt, or both?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I found a way to live with that issue for myself, implementing the following ignore logic:</p>
  
  <pre><code>QSslError ignoreNOErrors(QSslError::NoError);
  
  foreach(QSslError error, errors)
      if(error.error() != QSslError::NoError)
          qDebug() &lt;&lt; error.errorString();
  
  QList&lt;QSslError&gt; expectedSslErrors;
  expectedSslErrors.append(ignoreNOErrors);
  reply-&gt;ignoreSslErrors(expectedSslErrors);
  </code></pre>
  
  <p>Thanks</p>