Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. TLS initialization failed only on a particular machine
QtWS25 Last Chance

TLS initialization failed only on a particular machine

Scheduled Pinned Locked Moved Solved 3rd Party Software
12 Posts 5 Posters 2.3k 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.
  • F Offline
    F Offline
    fsinisi
    wrote on 22 Jan 2021, 19:43 last edited by
    #3

    Hi SGaist! Thanks for your answer. I will check. What should I be looking for?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jan 2021, 19:44 last edited by
      #4

      I'd start with checking If there's a certificate that is outdated or missing.

      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
      • H Offline
        H Offline
        Harry Schneider
        wrote on 26 Jan 2021, 07:39 last edited by
        #5

        Having the same issue. Certificates seems to be valid (clean Win 10 Pro). Any other ideas ?

        P 1 Reply Last reply 26 Jan 2021, 14:24
        0
        • H Harry Schneider
          26 Jan 2021, 07:39

          Having the same issue. Certificates seems to be valid (clean Win 10 Pro). Any other ideas ?

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 26 Jan 2021, 14:24 last edited by
          #6

          @Harry-Schneider said in TLS initialization failed only on a particular machine:

          Any other ideas ?

          You may want to use Wireshark to check the TLS handshake.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          F 1 Reply Last reply 25 Feb 2021, 15:28
          0
          • P Pablo J. Rogina
            26 Jan 2021, 14:24

            @Harry-Schneider said in TLS initialization failed only on a particular machine:

            Any other ideas ?

            You may want to use Wireshark to check the TLS handshake.

            F Offline
            F Offline
            fsinisi
            wrote on 25 Feb 2021, 15:28 last edited by
            #7

            @Pablo-J-Rogina said in TLS initialization failed only on a particular machine:

            @Harry-Schneider said in TLS initialization failed only on a particular machine:

            Any other ideas ?

            You may want to use Wireshark to check the TLS handshake.

            Hi Pablo, thanks for the suggestion. I'm using WireShark to compare the packages between a request that is working and the one is failing, but I don't see any differences at first sight. Do you know if there's anything in particular that I could look for?

            Here's the successful request:

            success.png

            And the one is failing:

            fail.png

            1 Reply Last reply
            0
            • F Offline
              F Offline
              fsinisi
              wrote on 26 Feb 2021, 13:35 last edited by
              #8

              @SGaist @Pablo-J-Rogina Do you know if there's a way to log more information about the error? Because I don't see anything wrong when I analyze the packages with WireShark. Right now I'm using poReply->errorString().

              Does it make sense to try updating Qt 6.0? Do you know if the binaries for libcrypto and/or libssl have been updated since Qt 5.15.0? Any other ideas?

              Thanks!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 26 Feb 2021, 19:15 last edited by
                #9

                You test different versions of OpenSSL yourself. They are not linked just dynamically loaded and even if linked, you can switch them.

                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
                1
                • F Offline
                  F Offline
                  fsinisi
                  wrote on 11 Mar 2021, 14:45 last edited by
                  #10

                  It worked by updating the OpenSSL binaries to OpenSSL 1.1.1j. So it's probably a bug that was solved in that version. Many thanks for the help! Hope this helps someone.

                  A 1 Reply Last reply 11 Mar 2021, 16:47
                  1
                  • F fsinisi
                    11 Mar 2021, 14:45

                    It worked by updating the OpenSSL binaries to OpenSSL 1.1.1j. So it's probably a bug that was solved in that version. Many thanks for the help! Hope this helps someone.

                    A Offline
                    A Offline
                    artwaw
                    wrote on 11 Mar 2021, 16:47 last edited by
                    #11

                    @fsinisi I had similar problem in the past and I found out that binaries for OpenSSL distributed with Qt are compiled used MSVC, they require additional libraries from MS. Some of the computers that were running my software had them, some of them not.
                    Problem was solved by using OpenSSL build with MinGW - no dependencies there.

                    For more information please re-read.

                    Kind Regards,
                    Artur

                    1 Reply Last reply
                    1
                    • F Offline
                      F Offline
                      fsinisi
                      wrote on 12 Mar 2021, 14:34 last edited by
                      #12

                      @artwaw Thanks for the tip!

                      In this particular case, I think the problem was related to the version because it started to work after updating to OpenSSL 1.1.1j instead of the version that comes with Qt 5.15.0 (which I think is OpenSSL 1.1.1g but I'm not sure now).

                      I compiled the libraries myself following the official guide which uses MSVC: https://github.com/openssl/openssl/blob/master/NOTES-WINDOWS.md

                      Anyway, your suggestion makes sense and it is definitely something to try as well if anyone has problems.

                      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