Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QSslSocket: SSL support not available despite OpenSSL DLLs present (Qt 5.2.1, Windows, MinGW)
Forum Updated to NodeBB v4.3 + New Features

QSslSocket: SSL support not available despite OpenSSL DLLs present (Qt 5.2.1, Windows, MinGW)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 265 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.
  • D Offline
    D Offline
    Dear_Username
    wrote 28 days ago last edited by
    #1

    I'm developing a Qt application on Windows using Qt 5.2.1 with MinGW 4.8.0. I need to perform HTTPS requests, but my application fails to detect SSL support.

    Here’s what I’ve done:

    1. I placed libeay32.dll and ssleay32.dll (from OpenSSL 1.0.2u) next to the built .exe file.
    2. I included OpenSSL headers and libraries in my project.
    3. I verified that QSslSocket::supportsSsl() returns false, and both sslLibraryBuildVersionString() and sslLibraryVersionString() return empty strings.
      The debug console shows:
    Supports SSL: false
    SSL library version (runtime): ""
    SSL support available: false
    

    I also encountered runtime errors indicating missing Qt DLLs (Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll).
    enter image description here

    Project structure:

    • Qt 5.2.1 with MinGW
    • Windows 10
    • MinGW 4.8.0

    My question:

    What else should I configure or fix to make QSslSocket recognize OpenSSL and enable HTTPS support?

    Is it possible that Qt 5.2.1 was built without OpenSSL support? If so, how can I verify or work around that (e.g., rebuilding Qt or switching to libcurl)?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote 28 days ago last edited by
      #2

      Use a debugger and set a breakpoint in qsslsocket_openssl_symbols.cpp/tryToLoadOpenSslWin32Library: https://code.qt.io/cgit/qt/qtbase.git/tree/src/network/ssl/qsslsocket_openssl_symbols.cpp?h=5.3

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0

      1/2

      26 May 2025, 15:29

      • Login

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