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 6.2.4 app does not detect any TLS/SSL backend (edit: works well with Qt 6.3.0rc)

Qt 6.2.4 app does not detect any TLS/SSL backend (edit: works well with Qt 6.3.0rc)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 561 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.
  • M Offline
    M Offline
    Mitsuriou
    wrote on 29 Mar 2022, 17:08 last edited by Mitsuriou
    #1

    Hello,

    I have migrated my app to Qt 6.2.4, coming from 5.15.2 (https://github.com/Mitsuriou/MFBO-Preset-Creator/tree/qt-6-compat).
    Everything works fine in both Visual Studio 2022 & Qt Creator 7.0.0, with both MSVC and MinGW, but when I deploy my app, the SLL support does not work.
    Just to be sure, I've redeployed all the dependencies many times with

    > D:\Qt\6.2.4\msvc2019_64\bin\windeployqt.exe .\MFBOPresetCreator.exe --release --compiler-runtime
    

    I've updated and tried with the latest OpenSSL DLLs for windows, I've tried with the ones Qt provides from the Qt Installer... But nothing works.
    I've noticed that there is a new folder named "tls" next to my .exe now, which contains 3 backend DLLs.
    When I check in standalone mode, my .exe does not find any SSL backend at runtime (but as I said, it works in VS 2022 and Qt Creator).

    With the code below in my main.cpp file:

        Utils::PrintMessageStdOut("");
        Utils::PrintMessageStdOut("Running MFBOPC in debug mode");
        Utils::PrintMessageStdOut("Checking support for SSL...");
    
        const auto lAvailableBackends{QSslSocket::availableBackends()};
        for (const auto& lBackend : lAvailableBackends)
        {
          Utils::PrintMessageStdOut(QString("Found SSL backend \"%1\"").arg(lBackend));
        }
    
        Utils::PrintMessageStdOut(QString("SSL backend: ").arg(QSslSocket::activeBackend()));
        Utils::PrintMessageStdOut(QString("Supports SSL? %1").arg(QSslSocket::supportsSsl() ? "yes" : "no"));
        Utils::PrintMessageStdOut(QString("SSL version information: %1").arg(QSslSocket::sslLibraryBuildVersionString()));
        Utils::PrintMessageStdOut("");
    

    I get the result below in my console:

    Running MFBOPC in debug mode.
    Checking support for SSL...
    SSL backend: .
    Supports SSL? no.
    SSL version information: .
    

    Could this be a bug with Qt 6.2.4? I've seen two or three recent posts already, on Internet, but there was not any solution to my issue.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mitsuriou
      wrote on 29 Mar 2022, 20:46 last edited by
      #2

      EDIT: The same code works very well with Qt 6.3.0rc.
      I'm quite sad that I lost so much time just for a thing that was not on my side ^^'

      Little question: should I report the issue to Qt? If yes, how do I do that?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 30 Mar 2022, 20:45 last edited by
        #3

        Hi,

        If you can reliably trigger this issue, then yes please report it with a full minimal compilable example that shows how to trigger it.

        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
        0
        • P Pl45m4 referenced this topic on 23 May 2024, 13:03

        1/3

        29 Mar 2022, 17:08

        • Login

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