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. OpenSSL Windows support.

OpenSSL Windows support.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 2.7k 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.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by
    #1

    I installed prebuilt OpenSSL on my windows machine and trying to make my network classes work with ssl, but I am getting QNetworkReply::NetworkError(UnknownNetworkError) "Error creating SSL context ()" "" and QSslSocket::supportsSsl(); returns false
    that is what I have done:

    win32: { #mingw openssl precompiled binaries
        LIBS += "C:\OpenSSL-Win32\lib\libssl.lib"
        LIBS += "C:\OpenSSL-Win32\lib\libcrypto.lib"
        INCLUDEPATH += C:\OpenSSL-Win32\include
    }
    

    lib is loaded because app is running but without ssl suppot. Whatdo i do wrong?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      That's not how you specify libraries to link to. Should be LIBS += -LC:/OpenSSL-Win32/lib -lssl, but that's irrelevant here. It's Qt that needs to be linked with SSL, not your executable, so all that you posted is unnecessary and does nothing.
      If Qt was built with SSL support all you need to do is place the OpenSSL dlls in the directory of your executable.

      1 Reply Last reply
      5
      • K Offline
        K Offline
        Kofr
        wrote on last edited by
        #3

        Copying libcrypto-1_1.dll and libssl-1_1.dll to the same directory where executable belongs to does not make it work.
        Is prebuilt Qt packages from https://download.qt.io/archive/qt/5.9/ built with OpenSSL?

        J.HilkJ 1 Reply Last reply
        0
        • K Kofr

          Copying libcrypto-1_1.dll and libssl-1_1.dll to the same directory where executable belongs to does not make it work.
          Is prebuilt Qt packages from https://download.qt.io/archive/qt/5.9/ built with OpenSSL?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Kofr I run into that a couple of weeks ago, @SGaist could help me than.

          Basically Qt does not yet support openssl 1.1, because of changed apis, try downloading the dlls for 1.0


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          K 1 Reply Last reply
          3
          • J.HilkJ J.Hilk

            @Kofr I run into that a couple of weeks ago, @SGaist could help me than.

            Basically Qt does not yet support openssl 1.1, because of changed apis, try downloading the dlls for 1.0

            K Offline
            K Offline
            Kofr
            wrote on last edited by
            #5

            @J.Hilk it works with 1.0.2

            1 Reply Last reply
            2

            • Login

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