PDA

View Full Version : Qt 4.7 SSL error : "The certificate has expired”



Joshy Abraham
16th March 2011, 07:06
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 http://orkut.com to test the SSL issues.

What was happening before we recompiled Qt source?

1) Following errors, when we tried to launch HTTPS urls 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

What we did?

1) Download and install Win32 OpenSSL v1.0.0d Light
2) Open VS2008 command prompt 3) Navigate to “C:\Qt\4.7.1” 4) configure.exe -debug-and-release -webkit -openssl -I C:\OpenSSL-Win32\Include -L C:\OpenSSL-Win32\Lib
5) nmake

Error After compiling with openSSL dll

1) when we try to load SSL url using webview , we get the following error
2) “The certificate has expired”
3) We handled the networkAccessManager sslErrors(QNetworkReply*,QList) event which showed as the “certificate expired” error.
4) We are unclear about what additional settings are needed to fix this issue