⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
Using network connection with TLSv1.2
cristeab last edited by
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_2);//TODO: not working
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 ?
chtrx 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.