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 library not loading on some machines
Forum Updated to NodeBB v4.3 + New Features

SSL library not loading on some machines

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 1.8k 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.
  • SappherS Offline
    SappherS Offline
    Sappher
    wrote on last edited by aha_1980
    #1

    I've been having trouble trying to identify a problem regarding SSL library and QT. In my own environment eveything works fine, but I have trouble loading the OpenSSL library on some virtual Windows machines.

    QT and OpenSSL are both dynamically linked, ie. dll's are present in the application directory. OpenSSL DLL's are there (libeay32.dll, libssl32.dll and ssleay32.dll). Still I get the error:

    SSL library not loaded
    

    when trying to connect to SSL encrypted server with QSslSocket.

    Now as I said, it works on most of the machines, and in my own environment aswell, so for now I won't post actual code examples (it shouldn't be error in the code itself, but in the way QT loads the OpenSSL library). The problem is only occuring on some virtually hosted Windows machines, somehow when running my application there, Qt doesn't find (or is unable to load) the SSL library. I have tried to search for ways to debug this, but I haven't found any.

    • Is there any way to force QT to load the SSL library from certain path? I'm trying to identify if the problem is that QT is trying to load it from different path other than the application directory
    • Is there any debug trace that could further tell me why QT can't load the library?
    • The OpenSSL library DLLs I have been using is from 2014, could it be the problem? Maybe they are incompatible with the environment somehow?

    EDIT: Oh and I forgot, I use Qt 5.1.1

    EDIT2: Well, I should have tried this before even asking :D Updating the OpenSSL library to latest version did the trick :)

    1 Reply Last reply
    0
    • P Offline
      P Offline
      petr.bena
      wrote on last edited by
      #2

      Hello,

      I am having exactly same problem, how did you fix it? You say you updated the SSL library, but to which version and from which source? I am trying latest version from slproweb and no luck.

      The weirdest thing is that I have 2 Windows 10 installations, on one it works just fine, it loads the DLL's from same path where .exe resides. On other Windows 10 installation with exactly same DLL files, it doesn't work. It makes no sense.

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Hi, to get the SLL libraries to work I always have to download and install the MSVC2017 redistributable DLLs https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
        Perhaps that will help for you too.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved