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. Qt and SSL support on Windows
QtWS25 Last Chance

Qt and SSL support on Windows

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 3.6k 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.
  • X Offline
    X Offline
    xtingray
    wrote on 13 May 2018, 04:33 last edited by xtingray
    #1

    Hi,

    Currently I am having a "popular" issue related to the SSL libs on Windows. This is the error message I am getting from console:

    qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
    qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
    qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
    qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
    qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error

    My environment is Windows 7, using Qt 5.9.10 (everything's 32bit). I have been trying several OpenSSL installers for Windows (32bit too). My Qt libraries are dynamic, so I am trying to use DLL files.

    One of the installers I tried was this:
    https://indy.fulgan.com/SSL/openssl-1.0.2o-i386-win32.zip
    I only found these files from that package:

    • libeay32.dll
    • ssleay32.dll

    Also I tried using the files: libssl32.dll and libcrypto.dll, following this post: https://stackoverflow.com/questions/41857883/qsslsocket-cannot-call-unresolved-function

    I'm including the SSL libs path into my PATH variable in the same way I set the values of other libraries that are actually working already.

    So, what I am doing wrong? What is the OpenSSL version/package I should install on Windows for Qt 5.9.10? (32bit)
    I appreciate any hint.


    Qt Developer

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 13 May 2018, 05:13 last edited by
      #2

      Hi, maybe a previous post can help

      1 Reply Last reply
      1
      • X Offline
        X Offline
        xtingray
        wrote on 13 May 2018, 17:56 last edited by
        #3

        I upgraded my Qt version to 5.10.1 and added this line to my code:

        QNetworkRequest request;
        request.setSslConfiguration(QSslConfiguration::defaultConfiguration());
        

        Then I used the SSL dll files from this package: https://indy.fulgan.com/SSL/openssl-1.0.2o-i386-win32.zip

        Now everything works. Thanks!


        Qt Developer

        1 Reply Last reply
        2
        • M Offline
          M Offline
          Mr Gisa
          wrote on 13 May 2018, 20:33 last edited by
          #4

          You put the dlls in your windows folder or the project directory?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 13 May 2018, 20:58 last edited by
            #5

            @Mr-Gisa Never put OpenSSL dlls (or any application specific dll for that matter) in the Windows folder. You may modify unexpectedly your system behaviour.

            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
            2

            4/5

            13 May 2018, 20:33

            • Login

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