Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windows deployment with SSL - libraries
QtWS25 Last Chance

Windows deployment with SSL - libraries

Scheduled Pinned Locked Moved Solved Installation and Deployment
windows 10deployment
4 Posts 2 Posters 2.2k 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.
  • A Offline
    A Offline
    artwaw
    wrote on 27 May 2020, 10:38 last edited by aha_1980
    #1

    Good morning,
    I've revisited some older code and compiled it first with Qt 14.2, now with 15.0. Last compile that has been deployed was with Qt 5.6. All x86.
    Program involves logging in to the web service over https, I used QAuthenticator for that. It works.

    As per usual process I used windeployqt, then copied OpenSSL libcrypto and libssl dll files. On dev machine, be it run standalone or from Qt (the latter both debug and release) all works just fine.

    When I copy the folder to the freshly installed Windows program runs but fails to authenticate. I've checked the firewall and all that, there is connectivity. If I would not know that SSL files are in place I'd say that SSL files are missing but then again, they're not.

    What do I miss?

    EDIT: I use mingw 8, x86.

    Kind regards,
    Artur Wawrowski

    For more information please re-read.

    Kind Regards,
    Artur

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 27 May 2020, 11:07 last edited by
      #2

      Just guessing, but usually the OpenSSL dlls need Microsoft C++ runtime dlls, perhaps they are present on your dev machine but not on the other PC.

      A 2 Replies Last reply 27 May 2020, 11:08
      3
      • H hskoglund
        27 May 2020, 11:07

        Just guessing, but usually the OpenSSL dlls need Microsoft C++ runtime dlls, perhaps they are present on your dev machine but not on the other PC.

        A Offline
        A Offline
        artwaw
        wrote on 27 May 2020, 11:08 last edited by
        #3

        @hskoglund Good guess, I think, thank you. This has not been mentioned in the Qt docs as far as I can tell but I will pursue this and post the results here. Many thanks!

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        0
        • H hskoglund
          27 May 2020, 11:07

          Just guessing, but usually the OpenSSL dlls need Microsoft C++ runtime dlls, perhaps they are present on your dev machine but not on the other PC.

          A Offline
          A Offline
          artwaw
          wrote on 27 May 2020, 11:26 last edited by
          #4

          @hskoglund It worked!
          I read the docs in OpenSSL provided with Qt (file INSTALL, src folder, section "Notes on shared libraries), where it states that:

          On Windows build with MSVC or using MingW, shared libraries are named
           libcrypto-1_1.dll and libssl-1_1.dll for 32-bit Windows, libcrypto-1_1-x64.dll
           and libssl-1_1-x64.dll for 64-bit x86_64 Windows, and libcrypto-1_1-ia64.dll
           and libssl-1_1-ia64.dll for IA64 Windows.  With MSVC, the import libraries
           are named libcrypto.lib and libssl.lib, while with MingW, they are named
           libcrypto.dll.a and libssl.dll.a. 
          

          Of course, files provided with Qt are build with MSVC which is just odd considering that I installed mingw only. Anyway, instead of going with installation of provided msvc packages (they are in the Qt folder tree, ms redist 2010) I downloaded OpenSLL 1.1.1d (or 1.1.1.4 as the dll description states) precompiled with mingw from official mirror.
          Works like a charm.

          What mislead me was that Qt started to provide OpenSSL binaries as toolkit whereas previously I always downloaded myself. Dumb me thought that toolkit would be oriented towards the build chain / compatible.

          Anyway, thank you @hskoglund for the hint.

          For more information please re-read.

          Kind Regards,
          Artur

          1 Reply Last reply
          0

          3/4

          27 May 2020, 11:08

          • Login

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