Using network connection with TLSv1.2
General and Desktop
2
Posts
2
Posters
2.6k
Views
1
Watching
-
wrote on 15 May 2014, 18:56 last edited by
Hi
I am trying to use encrypted http links (https) with QNetworkAccessManager. It seems that only when using TLS v1.0 the connection works:@ QNetworkRequest request(url);
QSslConfiguration config = request.sslConfiguration();
config.setProtocol(QSsl::TlsV1_0);
//config.setProtocol(QSsl::TlsV1_2);//TODO: not working
request.setSslConfiguration(config);@while TLS v1.2 does not. This page http://qt-project.org/doc/qt-5/qssl.html#SslProtocol-enum shows that TLS v1.2 is available, could you explain why it does not work ?
-
wrote on 19 Nov 2014, 14:44 last edited by
On what machine are you trying to use TLS v1.2 ?
On OSX, Qt uses /usr/lib/libssl.0.9.8.dylib which does not support TLS v 1.1 and 1.2 . You might try to upgrade OpenSSL on your Mac, and you might need to compile your own Qt SDK.