Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96349

Qt 6.2.0 - beta 3 - Qt Network: qt.network.ssl: No functional TLS backend was found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.2.0 Beta3
    • None
    • Windows/msvc2019_64
    • Windows

    Description

      From the document here: https://doc-snapshots.qt.io/qt6-dev/ssl.html

      By default, an SSL-enabled Qt library dynamically loads any installed OpenSSL library at run-time.

      I used OpenSSL 1.1.1j Toolkit and windeployqt and I am pretty sure that_ libcrypto-1_1-x64.dll and libssl-1_1-x64.dll_ are in the same folder as the executable when deploying.

      On qt 5.15, all seems good, but when trying to migrate to Qt 6.2.0, qt.network.ssl: No functional TLS backend was found will show up.

      Something weird in cmake that I noticed as well, It will do some package search even if I do not require it.

      • Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found version "1.1.1g")
      • Found WrapOpenSSLHeaders: C:/Strawberry/c/include (found version "1.1.1g")

      Not quite sure if these are relevant.

      And to resolve the issue, what I did was to copy dlls in 6.2.0\msvc2019_64\plugins\tls manually and that seemed to work

      I think there might be a bug in windeployqt

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            mingrui-zhang Mingrui Zhang
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes