do PyQt4.QtWebKit.QWebView on Windows7-64bit works with SSL sites?
I can browse unprotected sites, but trying to open an "https" one results in these messages:
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_strin开发者_JAVA百科g
After that, something inside qt freeze. My Windows QT/PyQT installations are from standard Riverbank' packages. Any idea?
I have found a working solution in the riverbank mailing list archive: ignore all ssl errors:
[...]
self.connect(myWebViewControl.page().networkAccessManager(),
SIGNAL("sslErrors (QNetworkReply *, const QList<QSslError> &)"),
self.sslErrorHandler)
def sslErrorHandler(self, reply, errorList):
reply.ignoreSslErrors()
print("SSL error ignored")
UPDATE: I don't know why but after some weeks I got those ssl errors again, btw I think this time I found the correct solution in this post: I got the "Win32 OpenSSL v1.0.0a" setup from here and, as requested, the "Microsoft Visual C++ 2008 Redistributable Package (x86)" from here, and they solved my problems.
精彩评论