Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using network connection with TLSv1.2
QtWS25 Last Chance

Using network connection with TLSv1.2

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chtrx
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved