QtNetwork SSL Handshake error on https://service.oneaccount.com/onlineV2_B/OSV2?event=login&pt=3

删除回忆录丶 提交于 2019-12-11 02:09:23

问题


When I use my QT application to download this page: https://service.oneaccount.com/onlineV2_B/OSV2?event=login&pt=3 with QNetworkAccessManager->get(url), I got a network error (QNetworkReply::NetworkError) in the reply object. The error string is SSL handshake failed. However, the sslErrors signal is not fired so I don't even get the chance to ignore this error. I got the same problem on Mac and Windows version.

If I do the same thing with QT 4.74. It works fine.


回答1:


Using QSslSocket::setProtocol(QSsl:SslV3) fixes the problem.



来源:https://stackoverflow.com/questions/13408829/qtnetwork-ssl-handshake-error-on-https-service-oneaccount-com-onlinev2-b-osv2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!