QtNetwork SSL Handshake error on https://service.o

2019-07-15 12:20发布

问题:

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.



标签: qt ssl qtnetwork