title: Qt 4.7 SSL error : "The certificate has expired”
body: <p>We compiled the QT code using the OpenSSL libraries. But we are not able to load the HTTPS webpages. The SSL Error handler is throwing “The certificate has expired” exception.  we used <a href="http://orkut.com" rel="nofollow">http://orkut.com</a> to test the SSL issues.</p>
  
  <p>What was happening before we recompiled Qt source?</p>
  
  <p>Following errors, when we tried to launch HTTPS urls</p>
  
  <pre><code>QSslSocket: cannot call unresolved function SSLv3_client_method
  QSslSocket: cannot call unresolved function SSL_CTX_new
  QSslSocket: cannot call unresolved function SSL_library_init
  QSslSocket: cannot call unresolved function ERR_get_error
  QSslSocket: cannot call unresolved function ERR_error_string
  </code></pre>
  
  <p>What we did?</p>
  
  <ol>
  <li>Download and install Win32 OpenSSL v1.0.0d Light </li>
  <li>Open VS2008 command prompt</li>
  <li>Navigate to “C:\Qt\4.7.1”</li>
  <li><code>configure.exe -debug-and-release -webkit -openssl -I C:\OpenSSL-Win32\Include -L C:\OpenSSL-Win32\Lib</code></li>
  <li><code>nmake</code></li>
  </ol>
  
  <p>Error After compiling with openSSL dll</p>
  
  <ol>
  <li>when we try to load SSL url using webview , we get the following error</li>
  <li>“The certificate has expired”</li>
  <li>We handled the networkAccessManager <code>sslErrors(QNetworkReply*,QList&lt;QSslError&gt;)</code> event which showed as the “certificate expired” error.</li>
  <li>We are unclear about what additional settings are needed to fix this issue</li>
  </ol>
  
  <hr>
  
  <p>when i tested my code in a 32 bit system, the OpenSSL dll worked as per expected. when i use a 64 bit system i get the “certificate expired” error. i am using Qt creator 32 bit version to run my code in the 64 bit system. also i am using OpenSSL 32 bit version.</p>