0

我可以浏览未受保护的网站,但尝试打开“https”会导致以下消息:

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

在那之后,qt里面的东西冻结了。我的 Windows QT/PyQT 安装来自标准 Riverbank 的软件包。任何的想法?

4

1 回答 1

1

我在河岸邮件列表存档中找到了一个可行的解决方案:忽略所有 ssl 错误:

    [...]
    self.connect(myWebViewControl.page().networkAccessManager(), 
        SIGNAL("sslErrors (QNetworkReply *, const QList<QSslError> &)"), 
        self.sslErrorHandler)

def sslErrorHandler(self, reply, errorList): 
    reply.ignoreSslErrors()
    print("SSL error ignored") 

更新:我不知道为什么,但几周后我又遇到了那些 ssl 错误,顺便说一句,我认为这次我在这篇文章中找到了正确的解决方案:我从这里得到了“ Win32 OpenSSL v1.0.0a ”设置,并且,从这里请求“ Microsoft Visual C++ 2008 Redistributable Package (x86) ” ,他们解决了我的问题。

于 2010-06-22T08:58:40.283 回答