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. SSL Handshaking fail in Network Download Example
Forum Updated to NodeBB v4.3 + New Features

SSL Handshaking fail in Network Download Example

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 454 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jcga
    wrote on last edited by
    #1

    Hi,

    I'm planning to add some web features to an application (mainly downloading files from web), and, to start with, tried the "Network Download Example" available on the (Qt site). It works for some sites, but for many others the SSL handshanking files. There is a bunch of error messages, the last one is 'qt.network.ssl: could not set SSL_CTRL_SET_TLSEXT_HOSTNAME, server name indication disabled', followed by 'Download of https://... failed: SSL handshake failed'.

    Does anyone has an idea to fix that?

    Best, jean-claude

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which OS are you using ?
      If not macOS, which version of OpenSSL are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jcga
        wrote on last edited by jcga
        #3

        Hi,

        The OS is Windows 7 (also tested with 10 in another machine) and OpenSSL version is 1.1.1k.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you share some of the web sites that are failing ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jcga
            wrote on last edited by
            #5

            I see nothing special about them, safe that they tend to be more "professional". Examples are: the site of the lab where I work (https://phlam.univ-lille.fr/) works, the site of the New York Times doesn't (https://www.nytimes.com/) , also Google https://www.google.fr/.

            By the way do you know how to test if OpenSSL is working properly without using Qt at all?

            For information my system path variable includes only the OpenSSL bin directory, perhaps that is not enough?

            Best,

            JC

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Which version of Qt by the way ?

              Do you have the same issue if not on your lab network ?

              Did you check the certificates ?

              As for testing OpenSSL, you can build an application using it directly since you have the library installed.

              In case of doubt, QSslSocket has a method to retrieve the OpenSSL version currently loaded by your application.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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