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. QSslSocket Behaviour Linux vs macOS (possibly LibreSSL incompatibilities?)
QtWS25 Last Chance

QSslSocket Behaviour Linux vs macOS (possibly LibreSSL incompatibilities?)

Scheduled Pinned Locked Moved Solved General and Desktop
47 Posts 2 Posters 12.0k 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.
  • S SGaist
    11 Mar 2018, 21:10

    Looking for something else, I stumble on this bug of Curl which I wonder if it relates to the problem at end.

    M Offline
    M Offline
    Markus M.
    wrote on 11 Mar 2018, 21:13 last edited by Markus M. 3 Nov 2018, 21:15
    #34

    @SGaist said in QSslSocket Behaviour Linux vs macOS (possibly LibreSSL incompatibilities?):

    bug of Curl

    I doubt it: the bug seems to address Yosemite; my issues are for one: on High Sierra and for two: consistent over various platforms (OpenSuSE, Ubuntu; Mac).

    Besides - why curl? I am not knowingly using curl for that project. Is it somehow used by Qt under the hood?

    M 1 Reply Last reply 22 Dec 2018, 00:44
    0
    • M Markus M.
      11 Mar 2018, 21:13

      @SGaist said in QSslSocket Behaviour Linux vs macOS (possibly LibreSSL incompatibilities?):

      bug of Curl

      I doubt it: the bug seems to address Yosemite; my issues are for one: on High Sierra and for two: consistent over various platforms (OpenSuSE, Ubuntu; Mac).

      Besides - why curl? I am not knowingly using curl for that project. Is it somehow used by Qt under the hood?

      M Offline
      M Offline
      Markus M.
      wrote on 22 Dec 2018, 00:44 last edited by
      #35

      Hello.. as a follow up: I am not aware of the changes that took place under the hood in Qt 5.12.

      However, the issues as described apparently are fixed now; i.e. I am now using Qt 5.12.0 as provided/updated using the Qt Maintenance Tool.

      In more detail: I had to use the custom compiled Qt 5.10.0 in order to be able to connect to my QSsl - based development server under macOS.
      With the latest update to Qt 5.12.0 everything works as intended out of the box, no custom Qt/SSL compilation required any more.

      Thx for fixing this!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 22 Dec 2018, 18:54 last edited by
        #36

        Glad it's working now and thanks for the feedback !

        Additonal note, I never wrote that this was a curl problem or bug that was affecting your application. Only that the bug report I found could give some additonal clues to look into to fix your problem.

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

        M 1 Reply Last reply 22 Dec 2018, 19:08
        0
        • S SGaist
          22 Dec 2018, 18:54

          Glad it's working now and thanks for the feedback !

          Additonal note, I never wrote that this was a curl problem or bug that was affecting your application. Only that the bug report I found could give some additonal clues to look into to fix your problem.

          M Offline
          M Offline
          Markus M.
          wrote on 22 Dec 2018, 19:08 last edited by Markus M.
          #37

          @SGaist Actually the post above may have been a bit premature. Not sure what is going on: I updated 2 machines to Qt 5.12.0.

          On my workstation, it is working as intended and described in the previous post.

          Since I assumed the issues have been fixed I also updated my Macbook only to find out the failed handshake still occurs.

          Currently I am in the process of investigating what is going on - mentioned computers installations are very similar. All I know for now is that the handshake failures occur only on one computer with standard Qt installation.
          I suspect the cause is somehow tied to libssl.a/libcrypto.a, perhaps different ssl version or something like that.

          I'll keep you advised if I find out what's going on

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 22 Dec 2018, 19:39 last edited by
            #38

            The one problem I can see is that OpenSSL is not used on macOS since a few Qt versions. Qt use the SecureTransport framework from macOS. You can still use OpenSSL though but you have to build Qt yourself for that as well as get a recent version of OpenSSL.

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

            M 1 Reply Last reply 22 Dec 2018, 19:48
            0
            • S SGaist
              22 Dec 2018, 19:39

              The one problem I can see is that OpenSSL is not used on macOS since a few Qt versions. Qt use the SecureTransport framework from macOS. You can still use OpenSSL though but you have to build Qt yourself for that as well as get a recent version of OpenSSL.

              M Offline
              M Offline
              Markus M.
              wrote on 22 Dec 2018, 19:48 last edited by Markus M.
              #39

              @SGaist I know - I did compile Qt with OpenSSL 1.0.2o a couple of months ago (Qt 5.10.0).
              Unfortunately later versions Qt failed to compile using this config - never figured out why; for the lack of time I just went ahead using mentioned custom compiled version.

              Yesterday I randomly checked if my server compiles/works using 5.12.0 - and to my surprise it did (on my workstation).
              It still doesn't on the Macbook what puzzles me...

              otool -L indicates everything is similar. The binary compiled on the workstation also does not work on the notebook - so clearly some dynamically linked library causing this. If only I knew which one

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 22 Dec 2018, 19:54 last edited by
                #40

                Any difference of macOS versions ?

                Any hint from the logs on the system ?

                Just in case, IIRC, since 5.10 Qt supports also OpenSSL 1.1

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

                M 1 Reply Last reply 22 Dec 2018, 20:19
                0
                • S SGaist
                  22 Dec 2018, 19:54

                  Any difference of macOS versions ?

                  Any hint from the logs on the system ?

                  Just in case, IIRC, since 5.10 Qt supports also OpenSSL 1.1

                  M Offline
                  M Offline
                  Markus M.
                  wrote on 22 Dec 2018, 20:19 last edited by
                  #41

                  @SGaist Nope. Same OS version, same Qt version... hence my surprise. I tried OpenSSL 1.1, but it seems incompatible with earlier versions as well as with the SSL classes in JDK, which my clients use. So no option for now

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 22 Dec 2018, 22:15 last edited by
                    #42

                    OpenSSL 1.1 requires a different backend. The 1.1 release broke API and ABI compatibility with the 1.0 release, hence you have to do a specific build of Qt or any library/application using OpenSSL.

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

                    M 1 Reply Last reply 23 Dec 2018, 02:47
                    0
                    • S SGaist
                      22 Dec 2018, 22:15

                      OpenSSL 1.1 requires a different backend. The 1.1 release broke API and ABI compatibility with the 1.0 release, hence you have to do a specific build of Qt or any library/application using OpenSSL.

                      M Offline
                      M Offline
                      Markus M.
                      wrote on 23 Dec 2018, 02:47 last edited by
                      #43

                      @SGaist I did a fresh macOS install using a VM and can confirm the issue is resolved in stock macOS High Sierra using XCode 9.4.1, Command Line Tools 10.1 for High Sierra and standard Qt 5.12.0 installation.

                      Guess I have to find some path/ssl lib or similar getting in the way on my Macbook, but this should not be any of your concern.

                      Again, thanks for support.

                      Issue solved.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 23 Dec 2018, 22:24 last edited by
                        #44

                        You're welcome !

                        Then please mark the thread as solved using the "Topic Tools" button so other forum users may know a solution has been found :)

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

                        M 1 Reply Last reply 23 Dec 2018, 22:27
                        0
                        • S SGaist
                          23 Dec 2018, 22:24

                          You're welcome !

                          Then please mark the thread as solved using the "Topic Tools" button so other forum users may know a solution has been found :)

                          M Offline
                          M Offline
                          Markus M.
                          wrote on 23 Dec 2018, 22:27 last edited by Markus M.
                          #45

                          @SGaist Done!

                          Fyi: did not find what was wrong; after a clean install everything is working as intended.

                          Thx

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 23 Dec 2018, 22:30 last edited by
                            #46

                            Software mysteries... You may have gremlins playing with your machine ;-)

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

                            M 1 Reply Last reply 23 Dec 2018, 22:40
                            0
                            • S SGaist
                              23 Dec 2018, 22:30

                              Software mysteries... You may have gremlins playing with your machine ;-)

                              M Offline
                              M Offline
                              Markus M.
                              wrote on 23 Dec 2018, 22:40 last edited by
                              #47

                              @SGaist Yeh, pretty likely :-)

                              Checked every single dylib, libcrypto.* libssl.*, but no luck. Reinstalling took me half the time in comparison to investigating the issue...

                              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