Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Workaround for using SSL 3 in Qt 6.3
Forum Updated to NodeBB v4.3 + New Features

Workaround for using SSL 3 in Qt 6.3

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 2 Posters 3.6k Views 1 Watching
  • 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
    Mark81
    wrote on 16 May 2022, 09:38 last edited by
    #1

    When running applications in Qt 6.3 under Ubuntu 22.04 I receive the following warnings:

    [20220516 11:32:01 W] unknown:0 - Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)
    [20220516 11:32:01 W] unknown:0 - The backend "cert-only" does not support QSslKey
    [20220516 11:32:01 W] unknown:0 - Active TLS backend does not support key creation

    I understand that the Qt developers built Qt 6.3 with the old OpenSSL 1.x.
    Because the next release of Qt 6.4 is planned for September, I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.

    I.e. Is it possible to build only this module and overwrite the libraries?

    C 1 Reply Last reply 16 May 2022, 09:40
    1
    • M Mark81
      16 May 2022, 09:38

      When running applications in Qt 6.3 under Ubuntu 22.04 I receive the following warnings:

      [20220516 11:32:01 W] unknown:0 - Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)
      [20220516 11:32:01 W] unknown:0 - The backend "cert-only" does not support QSslKey
      [20220516 11:32:01 W] unknown:0 - Active TLS backend does not support key creation

      I understand that the Qt developers built Qt 6.3 with the old OpenSSL 1.x.
      Because the next release of Qt 6.4 is planned for September, I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.

      I.e. Is it possible to build only this module and overwrite the libraries?

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 16 May 2022, 09:40 last edited by
      #2

      @Mark81 said in Workaround for using SSL 3 in Qt 6.3:

      I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.

      No, Qt6.3 does not support OpenSSL 3 - install OpenSSL 1.1

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M 1 Reply Last reply 16 May 2022, 09:45
      0
      • C Christian Ehrlicher
        16 May 2022, 09:40

        @Mark81 said in Workaround for using SSL 3 in Qt 6.3:

        I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.

        No, Qt6.3 does not support OpenSSL 3 - install OpenSSL 1.1

        M Offline
        M Offline
        Mark81
        wrote on 16 May 2022, 09:45 last edited by Mark81
        #3

        @Christian-Ehrlicher I did. But perhaps I did it wrong.
        Because other modules didn't work anymore:

        GStreamer-WARNING **: 18:10:44.471: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/librabbitmq.so.4)
        
        $ ldd libqsqlmysql.so 
        ./libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.21)
        ...
        

        Can I install both so each module uses what it prefers?

        C 1 Reply Last reply 16 May 2022, 09:49
        0
        • M Mark81
          16 May 2022, 09:45

          @Christian-Ehrlicher I did. But perhaps I did it wrong.
          Because other modules didn't work anymore:

          GStreamer-WARNING **: 18:10:44.471: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/librabbitmq.so.4)
          
          $ ldd libqsqlmysql.so 
          ./libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.21)
          ...
          

          Can I install both so each module uses what it prefers?

          C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 16 May 2022, 09:49 last edited by
          #4

          @Mark81 said in Workaround for using SSL 3 in Qt 6.3:

          Can I install both so each module uses what it prefers?

          You can, but it seems like you've overridden libssl.so.3 with openssl 1.1 - why?
          Install both openssl version with your distributions package manager!

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          M 1 Reply Last reply 16 May 2022, 10:19
          0
          • C Christian Ehrlicher
            16 May 2022, 09:49

            @Mark81 said in Workaround for using SSL 3 in Qt 6.3:

            Can I install both so each module uses what it prefers?

            You can, but it seems like you've overridden libssl.so.3 with openssl 1.1 - why?
            Install both openssl version with your distributions package manager!

            M Offline
            M Offline
            Mark81
            wrote on 16 May 2022, 10:19 last edited by
            #5

            @Christian-Ehrlicher initially I overwrote the files because I followed the instructions in the link provided (in the linked thread).

            I cannot use the distribution package manager (apt) because OpenSSL 1.x is not available under Ubuntu 22.04.
            Hence, Qt 6 are NOT usable in 22.04 by default!!! This should required a HUGE warning in the online installer and on the website.

            Anyway, I'm trying to use OpenSSL from 21.10:

            wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1_amd64.deb
            sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1_amd64.deb
            wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1l-1ubuntu1.3_amd64.deb
            sudo dpkg -i openssl_1.1.1l-1ubuntu1.3_amd64.deb
            

            I need to try it deeper, but it seems it did the trick.

            C 1 Reply Last reply 16 May 2022, 10:35
            0
            • M Mark81
              16 May 2022, 10:19

              @Christian-Ehrlicher initially I overwrote the files because I followed the instructions in the link provided (in the linked thread).

              I cannot use the distribution package manager (apt) because OpenSSL 1.x is not available under Ubuntu 22.04.
              Hence, Qt 6 are NOT usable in 22.04 by default!!! This should required a HUGE warning in the online installer and on the website.

              Anyway, I'm trying to use OpenSSL from 21.10:

              wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1_amd64.deb
              sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1_amd64.deb
              wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1l-1ubuntu1.3_amd64.deb
              sudo dpkg -i openssl_1.1.1l-1ubuntu1.3_amd64.deb
              

              I need to try it deeper, but it seems it did the trick.

              C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 16 May 2022, 10:35 last edited by
              #6

              @Mark81 said in Workaround for using SSL 3 in Qt 6.3:

              This should required a HUGE warning in the online installer and on the website.

              Why / how should the Qt installer know which packages your specific distribution is using??

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              M 1 Reply Last reply 16 May 2022, 10:50
              0
              • C Christian Ehrlicher
                16 May 2022, 10:35

                @Mark81 said in Workaround for using SSL 3 in Qt 6.3:

                This should required a HUGE warning in the online installer and on the website.

                Why / how should the Qt installer know which packages your specific distribution is using??

                M Offline
                M Offline
                Mark81
                wrote on 16 May 2022, 10:50 last edited by
                #7

                @Christian-Ehrlicher any installer checks and verify the requisites before install anything.

                1 Reply Last reply
                1
                • A acetone referenced this topic on 6 Apr 2023, 15:37

                1/7

                16 May 2022, 09:38

                • Login

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