Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved How to tell Qt to use my SSL DLLs on Windows

    QtWebEngine
    4
    10
    783
    Loading More Posts
    • 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
      JonathanA last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • J
          JonathanA last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 3
            • J
              JonathanA @SGaist last edited by

              @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-worx 1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • raven-worx
                  raven-worx Moderators @JonathanA last edited by

                  @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 Reply Quote 0
                  • J
                    JonathanA @raven-worx last edited by

                    @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. Rogina 1 Reply Last reply Reply Quote 0
                    • Pablo J. Rogina
                      Pablo J. Rogina @JonathanA last edited by

                      @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 Reply Quote 1
                      • J
                        JonathanA @Pablo J. Rogina last edited by

                        @pablo-j-rogina Yay!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post