https://service.oneaccount.com/onlineV2_B/OSV2上的QtNetwork SSL握手错误?event = login& pt = 3 [英] QtNetwork SSL Handshake error on https://service.oneaccount.com/onlineV2_B/OSV2?event=login&pt=3

查看:107
本文介绍了https://service.oneaccount.com/onlineV2_B/OSV2上的QtNetwork SSL握手错误?event = login& pt = 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用我的QT应用程序下载此页面时: https://service.oneaccount.com/onlineV2_B/OSV2?event=login&pt=3 和QNetworkAccessManager-> get(url),在回复对象中出现网络错误(QNetworkReply :: NetworkError).错误字符串是SSL握手失败.但是,不会触发sslErrors信号,因此我什至没有机会忽略此错误.我在Mac和Windows版本上遇到了同样的问题.

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.

如果我对QT 4.74做同样的事情.它工作正常.

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

推荐答案

使用QSslSocket::setProtocol(QSsl:SslV3)可以解决此问题.

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

这篇关于https://service.oneaccount.com/onlineV2_B/OSV2上的QtNetwork SSL握手错误?event = login& pt = 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆