简体   繁体   English

Qt SSl错误(QSslSocket:无法解析TLSv1_1_client_method)

[英]Qt SSl Error (QSslSocket: cannot resolve TLSv1_1_client_method)

I get the below error when I use setUrl(" https://www.bing.com ") of QWebView: 当我使用QWebView的setUrl(“ https://www.bing.com ”)时,我得到以下错误:

QWebView *view = new QWebView();
view->setUrl(QUrl("https://www.bing.com"));
view->show();

Error: 错误:

  • QSslSocket: cannot resolve TLSv1_1_client_method QSslSocket:无法解析TLSv1_1_client_method
  • QSslSocket: cannot resolve TLSv1_2_client_method QSslSocket:无法解析TLSv1_2_client_method
  • QSslSocket: cannot resolve TLSv1_1_server_method QSslSocket:无法解析TLSv1_1_server_method
  • QSslSocket: cannot resolve TLSv1_2_server_method QSslSocket:无法解析TLSv1_2_server_method

Im using qt5.2.1(x86), windows 8 64 bit OS pc. 我使用qt5.2.1(x86),Windows 8 64位OS pc。 How to resolve this? 怎么解决这个?

The version of openssl you have installed is too old. 您安装的openssl版本太旧了。 Install version 1.0.0 or newer (preferably the latest version). 安装1.0.0或更新版本(最好是最新版本)。 If those methods can't be resolved (but you still have some SSL support) then Qt is only able to find an older version such as openssl 0.9.8 which is too old to support these methods. 如果这些方法无法解决(但你仍然有一些SSL支持),那么Qt只能找到一个旧版本,例如openssl 0.9.8,这个版本太旧而不支持这些方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM