Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt - QML Image: TLS initialization failed
Forum Updated to NodeBB v4.3 + New Features

Qt - QML Image: TLS initialization failed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
14 Posts 2 Posters 5.3k 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.
  • K Offline
    K Offline
    Karwan
    wrote on 5 Jan 2019, 00:55 last edited by Karwan 1 May 2019, 00:59
    #1

    Hi , i was solving the problem of ssl , i downloaded openssl and last version , and copied the DLL files to three /bin of minGw , but this not helped me , i'm trying to parse xml file include only images to XmlListModel , so the problem is only this three images showing
    alt text
    , i'm already know that the server is the problem , but why Qt not reading all images ?
    i searched about 4 month to fix
    qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

    i tried the environment but nothing happened , please help !! sorry fory the good english :D :)
    alt text
    :)
    and the openssl version :
    OpenSSL 1.0.2l

    K 1 Reply Last reply 5 Jan 2019, 20:22
    0
    • K Karwan
      5 Jan 2019, 00:55

      Hi , i was solving the problem of ssl , i downloaded openssl and last version , and copied the DLL files to three /bin of minGw , but this not helped me , i'm trying to parse xml file include only images to XmlListModel , so the problem is only this three images showing
      alt text
      , i'm already know that the server is the problem , but why Qt not reading all images ?
      i searched about 4 month to fix
      qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

      i tried the environment but nothing happened , please help !! sorry fory the good english :D :)
      alt text
      :)
      and the openssl version :
      OpenSSL 1.0.2l

      K Offline
      K Offline
      Karwan
      wrote on 5 Jan 2019, 20:22 last edited by
      #2

      help guys :) ?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 5 Jan 2019, 20:28 last edited by
        #3

        Hi,

        Please show some patience and allow 24 hours to pass before bumping your thread. People answering here do it on their own time and might not live in the same timezone as you.

        As for your problem, where did you put your OpenSSL libraries exactly ?
        What version of Qt are you using ? (you are showing the Qt Creator about box which is not the same thing=

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply 5 Jan 2019, 21:37
        1
        • S SGaist
          5 Jan 2019, 20:28

          Hi,

          Please show some patience and allow 24 hours to pass before bumping your thread. People answering here do it on their own time and might not live in the same timezone as you.

          As for your problem, where did you put your OpenSSL libraries exactly ?
          What version of Qt are you using ? (you are showing the Qt Creator about box which is not the same thing=

          K Offline
          K Offline
          Karwan
          wrote on 5 Jan 2019, 21:37 last edited by
          #4

          @SGaist first thank you for your reply ,
          i put the libraries ( from C:\OpenSSL-Win32\bin) to the following path:
          C:\Qt\Qt5.12.0\5.12.0\mingw73_64\bin
          C:\Qt\Qt5.12.0\Tools\mingw730_64\bin
          .
          and iam using the last version of Qt which is 5.12 , :)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 5 Jan 2019, 22:05 last edited by
            #5

            IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            K 2 Replies Last reply 6 Jan 2019, 13:12
            0
            • S SGaist
              5 Jan 2019, 22:05

              IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.

              K Offline
              K Offline
              Karwan
              wrote on 6 Jan 2019, 13:12 last edited by
              #6

              @SGaist i tried my best and i've done this but it show the error , any idea ?
              alt text
              ******without importing library all pictures works but only my Uploaded Picture not working and some internet image not working and telling me :

              qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed**
              qrc:/main.qml:24:13: QML Image: TLS initialization failed
              alt text
              the problem is just openssl :) what i've to do next ?
              ****

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 6 Jan 2019, 13:39 last edited by
                #7

                It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                K 2 Replies Last reply 6 Jan 2019, 13:50
                0
                • S SGaist
                  5 Jan 2019, 22:05

                  IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.

                  K Offline
                  K Offline
                  Karwan
                  wrote on 6 Jan 2019, 13:39 last edited by
                  #8

                  @SGaist Now the library import have no problem , but still show the error , run qmake , rebuild , nothing happen :(
                  alt text

                  1 Reply Last reply
                  0
                  • S SGaist
                    6 Jan 2019, 13:39

                    It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.

                    K Offline
                    K Offline
                    Karwan
                    wrote on 6 Jan 2019, 13:50 last edited by
                    #9

                    @SGaist can you give link and name of the 64bit version , i've downloaded everything

                    1 Reply Last reply
                    0
                    • S SGaist
                      6 Jan 2019, 13:39

                      It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.

                      K Offline
                      K Offline
                      Karwan
                      wrote on 6 Jan 2019, 14:06 last edited by
                      #10

                      @SGaist i've downloaded Win64 OpenSSL v1.1.1a - 43MB Installer , and there's no ssleay and libeay library :)

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 6 Jan 2019, 14:21 last edited by
                        #11

                        Because the name of the libraries have changed. OpenSSL 1.1 is not backward compatible with 1.0.

                        But in any case, you don't have to link the libraries, Qt dlopens them.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        K 1 Reply Last reply 6 Jan 2019, 14:26
                        0
                        • S SGaist
                          6 Jan 2019, 14:21

                          Because the name of the libraries have changed. OpenSSL 1.1 is not backward compatible with 1.0.

                          But in any case, you don't have to link the libraries, Qt dlopens them.

                          K Offline
                          K Offline
                          Karwan
                          wrote on 6 Jan 2019, 14:26 last edited by Karwan 1 Jun 2019, 14:31
                          #12

                          @SGaist so i have deleted the linking , now only thing i've added is the openssl.cfg to Environment , so what to do ? copy all new library and put them to
                          C:\Qt\Qt5.12.0\5.12.0\mingw73_64\bin
                          C:\Qt\Qt5.12.0\Tools\mingw730_64\bin

                          this will fix the problem ?

                          Edited:
                          new names are libcrypto-1_1.dll and libssl-1_1.dll , copied to 2 path , Rebuild , Again same problem :) any idea ?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 6 Jan 2019, 20:40 last edited by
                            #13

                            Go to the Run part of the Project panel and modify the PATH environment variable by putting the folder where you can find the OpenSSL dlls.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            K 1 Reply Last reply 6 Jan 2019, 20:54
                            0
                            • S SGaist
                              6 Jan 2019, 20:40

                              Go to the Run part of the Project panel and modify the PATH environment variable by putting the folder where you can find the OpenSSL dlls.

                              K Offline
                              K Offline
                              Karwan
                              wrote on 6 Jan 2019, 20:54 last edited by
                              #14

                              @SGaist during 4 months i downloaded everything on http://slproweb.com/products/Win32OpenSSL.html

                              only one thing i haven't download it , it was this Win64OpenSSL 1.0.2q - Light
                              by copying the 3 library to bin paths %
                              Finalyyyyyyy Rebuild and it work !!,
                              Thank you @SGaist for eeverything :) <3

                              1 Reply Last reply
                              1

                              1/14

                              5 Jan 2019, 00:55

                              • Login

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