Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. How to tell Qt to use my SSL DLLs on Windows

How to tell Qt to use my SSL DLLs on Windows

Scheduled Pinned Locked Moved Unsolved QtWebEngine
10 Posts 4 Posters 1.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.
  • J Offline
    J Offline
    JonathanA
    wrote on last edited by
    #1

    I'm having a problem on a customer's computer because my Qt app is loading the wrong SSL DLLs on Windows 8. We ship our own SSL libraries, which are in the application directory, but from everything I have been reading, it seems that the dynamic loading by Qt doesn't include the application folder. It seems, almost inexplicably, to scan the entire PATH for them, which just doesn't make a lick of sense. So on my customer's computer, it is loading a 5 year old SSL dll, from Zeus knows where.

    Is there any way, short of building a custom Qt, to have Qt look first in the application folder for libssl1-1.dll?

    Jonathan

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

      Hi,

      Which version of Qt are you using ?
      Because OpenSSL 1.1 is not that old, so you might be shipping the wrong dll and thus this other versions get found.

      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
        JonathanA
        wrote on last edited by
        #3

        We are using Qt 5.12.3. We are building and including OpenSSL 1.1.0h. My customer's site is picking up OpenSSL 1.0.1h. I know it isn't picking up my DLLs, because I can delete them and it doesn't have any affect.

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

          And there's the issue. OpenSSL 1.1 broke both API and ABI with the 1.0 series. Until Qt 5.12.3 the pre-built package was built using OpenSSL 1.0. Since 5.12.4, it's built against OpenSSL 1.1. So you have two choices:

          • Provide the latest 1.0 OpenSSL dlls
          • Upgrade to Qt 5.12.4 or higher

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

          J 1 Reply Last reply
          3
          • SGaistS SGaist

            And there's the issue. OpenSSL 1.1 broke both API and ABI with the 1.0 series. Until Qt 5.12.3 the pre-built package was built using OpenSSL 1.0. Since 5.12.4, it's built against OpenSSL 1.1. So you have two choices:

            • Provide the latest 1.0 OpenSSL dlls
            • Upgrade to Qt 5.12.4 or higher
            J Offline
            J Offline
            JonathanA
            wrote on last edited by
            #5

            @sgaist well, we can't upgrade to 5.12.4 because it has a crash when running in hi resolution mode with multi monitors. We're awaiting the release of 5.12.5, which should have the fix for that. Guess we'll see what happens then.

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

              In that case, go with solution 1 that will ensure hat everybody uses the correct OpenSSL dlls.

              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 JonathanA

                @sgaist well, we can't upgrade to 5.12.4 because it has a crash when running in hi resolution mode with multi monitors. We're awaiting the release of 5.12.5, which should have the fix for that. Guess we'll see what happens then.

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @jonathana
                to add to @SGaist, you can also compile Qt 5.12 yourself with OpenSSL 1.1 support

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                J 1 Reply Last reply
                0
                • raven-worxR raven-worx

                  @jonathana
                  to add to @SGaist, you can also compile Qt 5.12 yourself with OpenSSL 1.1 support

                  J Offline
                  J Offline
                  JonathanA
                  wrote on last edited by
                  #8

                  @raven-worx said in How to tell Qt to use my SSL DLLs on Windows:

                  @jonathana
                  to add to @SGaist, you can also compile Qt 5.12 yourself with OpenSSL 1.1 support

                  Maybe I'll try that. I've gotten pretty good at building Qt, at least as a stopgap until 5.12.5 comes out

                  Pablo J. RoginaP 1 Reply Last reply
                  0
                  • J JonathanA

                    @raven-worx said in How to tell Qt to use my SSL DLLs on Windows:

                    @jonathana
                    to add to @SGaist, you can also compile Qt 5.12 yourself with OpenSSL 1.1 support

                    Maybe I'll try that. I've gotten pretty good at building Qt, at least as a stopgap until 5.12.5 comes out

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

                    @jonathana said in How to tell Qt to use my SSL DLLs on Windows:

                    until 5.12.5 comes out

                    Your wish is Qt company's command... see blog post as 5.12.5 was released yesterday.

                    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

                    J 1 Reply Last reply
                    1
                    • Pablo J. RoginaP Pablo J. Rogina

                      @jonathana said in How to tell Qt to use my SSL DLLs on Windows:

                      until 5.12.5 comes out

                      Your wish is Qt company's command... see blog post as 5.12.5 was released yesterday.

                      J Offline
                      J Offline
                      JonathanA
                      wrote on last edited by
                      #10

                      @pablo-j-rogina Yay!

                      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