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. SSL for new Qt version
Forum Updated to NodeBB v4.3 + New Features

SSL for new Qt version

Scheduled Pinned Locked Moved Solved General and Desktop
13 Posts 3 Posters 1.5k Views 3 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.
  • A Offline
    A Offline
    Andy314
    wrote on 16 Nov 2020, 07:42 last edited by
    #1

    Hello,
    I am on the way from Qt 5.6.0 MSVC2015-32 bit to a newer Qt version MSVC2019-64 bit.
    In the older version it was easy to make SSL working. I found in my windows-system the libeay32.dll and the ssleay32.dll, have copied it to the EXE and all works fine.
    Where can I get the versions for the new environment ?
    Thanks
    Andreas

    J 1 Reply Last reply 16 Nov 2020, 07:46
    0
    • A Andy314
      16 Nov 2020, 07:42

      Hello,
      I am on the way from Qt 5.6.0 MSVC2015-32 bit to a newer Qt version MSVC2019-64 bit.
      In the older version it was easy to make SSL working. I found in my windows-system the libeay32.dll and the ssleay32.dll, have copied it to the EXE and all works fine.
      Where can I get the versions for the new environment ?
      Thanks
      Andreas

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Nov 2020, 07:46 last edited by jsulm
      #2

      @Andy314 said in SSL for new Qt version:

      Where can I get the versions for the new environment ?

      If I'm not mistaked you can now install OpenSSL using Online Installer/Qt Maintenance Tool

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply 16 Nov 2020, 08:52
      2
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 16 Nov 2020, 07:53 last edited by
        #3

        Hi,

        As @jsulm wrote, you can now get them directly from the online installer. One note, if you find these libraries within your Windows system folders, it means that you have at least one application that is misbehaving. OpenSSL is not a standard Windows installation and like any other standard application dependency, it should not get installed in system folders.

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

        A 1 Reply Last reply 16 Nov 2020, 10:55
        2
        • J jsulm
          16 Nov 2020, 07:46

          @Andy314 said in SSL for new Qt version:

          Where can I get the versions for the new environment ?

          If I'm not mistaked you can now install OpenSSL using Online Installer/Qt Maintenance Tool

          A Offline
          A Offline
          Andy314
          wrote on 16 Nov 2020, 08:52 last edited by Andy314
          #4

          @jsulm said in SSL for new Qt version:

          @Andy314 said in SSL for new Qt version:

          Where can I get the versions for the new environment ?

          If I'm not mistaked you can now install OpenSSL using Online Installer/Qt Maintenance Tool

          For Qt 1.15.1 I have installed nearly all. Especially "Qt Network Autorization"
          and "Additional librarys/Qt/Qt Network Autorization". What must I enable ?

          I found the libeay32.dll and the ssleay32.dll in the Qt-installationonly only under
          "\Tools\mingw810_32\opt\bin" resp. "\Tools\mingw810_62\opt\bin"

          These files do not work with MSVC. There is no MSVC version or what filename do they have ?

          J 1 Reply Last reply 16 Nov 2020, 08:57
          0
          • A Andy314
            16 Nov 2020, 08:52

            @jsulm said in SSL for new Qt version:

            @Andy314 said in SSL for new Qt version:

            Where can I get the versions for the new environment ?

            If I'm not mistaked you can now install OpenSSL using Online Installer/Qt Maintenance Tool

            For Qt 1.15.1 I have installed nearly all. Especially "Qt Network Autorization"
            and "Additional librarys/Qt/Qt Network Autorization". What must I enable ?

            I found the libeay32.dll and the ssleay32.dll in the Qt-installationonly only under
            "\Tools\mingw810_32\opt\bin" resp. "\Tools\mingw810_62\opt\bin"

            These files do not work with MSVC. There is no MSVC version or what filename do they have ?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 16 Nov 2020, 08:57 last edited by
            #5

            @Andy314 said in SSL for new Qt version:

            Qt Network Autorization

            This is not OpenSSL.
            Check "Developer and Designer Tools" - there is an entry for OpenSSL.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply 16 Nov 2020, 09:25
            1
            • J jsulm
              16 Nov 2020, 08:57

              @Andy314 said in SSL for new Qt version:

              Qt Network Autorization

              This is not OpenSSL.
              Check "Developer and Designer Tools" - there is an entry for OpenSSL.

              A Offline
              A Offline
              Andy314
              wrote on 16 Nov 2020, 09:25 last edited by Andy314
              #6

              @jsulm said in SSL for new Qt version:

              @Andy314 said in SSL for new Qt version:

              Qt Network Autorization

              This is not OpenSSL.
              Check "Developer and Designer Tools" - there is an entry for OpenSSL.

              Aha thank you, I found it. Then I get the folder
              D:\Qt4\Tools\OpenSSL\Win_x86\bin
              There are 2 dlls in it:
              libcrypto-1_1.dll and libssl-1_1.dll

              Moving this files to the EXE does not help.
              Must I rename it. Needs the new Qt version the same filenames like the older version ?

              J 1 Reply Last reply 16 Nov 2020, 11:53
              0
              • S SGaist
                16 Nov 2020, 07:53

                Hi,

                As @jsulm wrote, you can now get them directly from the online installer. One note, if you find these libraries within your Windows system folders, it means that you have at least one application that is misbehaving. OpenSSL is not a standard Windows installation and like any other standard application dependency, it should not get installed in system folders.

                A Offline
                A Offline
                Andy314
                wrote on 16 Nov 2020, 10:55 last edited by
                #7

                @SGaist said in SSL for new Qt version:

                Hi,

                As @jsulm wrote, you can now get them directly from the online installer. One note, if you find these libraries within your Windows system folders, it means that you have at least one application that is misbehaving. OpenSSL is not a standard Windows installation and like any other standard application dependency, it should not get installed in system folders.

                Your are right ! I mean Windows-Computer and not Windows-System-Folder. I found it in under Programms (x86). There are a lot versions of the 2 dlls.

                QSslSocket::sslLibraryBuildVersionString(); gives 1.1.1g.
                I checked the dlls with the property dialog and found a matching versions of the 2 dlls. I copied the files to the EXE without success.
                (for now I checked the 32 bit version but I need 64- at last.)

                Could this be the correct way or what must I do ?
                (It is unclear for me what shall I do with binarys delivered from the maintenece tools.)

                1 Reply Last reply
                0
                • A Andy314
                  16 Nov 2020, 09:25

                  @jsulm said in SSL for new Qt version:

                  @Andy314 said in SSL for new Qt version:

                  Qt Network Autorization

                  This is not OpenSSL.
                  Check "Developer and Designer Tools" - there is an entry for OpenSSL.

                  Aha thank you, I found it. Then I get the folder
                  D:\Qt4\Tools\OpenSSL\Win_x86\bin
                  There are 2 dlls in it:
                  libcrypto-1_1.dll and libssl-1_1.dll

                  Moving this files to the EXE does not help.
                  Must I rename it. Needs the new Qt version the same filenames like the older version ?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 16 Nov 2020, 11:53 last edited by
                  #8

                  @Andy314 said in SSL for new Qt version:

                  D:\Qt4\Tools\OpenSSL\Win_x86\bin

                  Is there D:\Qt4\Tools\OpenSSL\Win_x86_64\bin also?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply 16 Nov 2020, 12:05
                  0
                  • J jsulm
                    16 Nov 2020, 11:53

                    @Andy314 said in SSL for new Qt version:

                    D:\Qt4\Tools\OpenSSL\Win_x86\bin

                    Is there D:\Qt4\Tools\OpenSSL\Win_x86_64\bin also?

                    A Offline
                    A Offline
                    Andy314
                    wrote on 16 Nov 2020, 12:05 last edited by Andy314
                    #9

                    @jsulm said in SSL for new Qt version:

                    @Andy314 said in SSL for new Qt version:

                    D:\Qt4\Tools\OpenSSL\Win_x86\bin

                    Is there D:\Qt4\Tools\OpenSSL\Win_x86_64\bin also?

                    No it is not:
                    This folder I have Win_x64.

                    J 1 Reply Last reply 16 Nov 2020, 12:09
                    0
                    • A Andy314
                      16 Nov 2020, 12:05

                      @jsulm said in SSL for new Qt version:

                      @Andy314 said in SSL for new Qt version:

                      D:\Qt4\Tools\OpenSSL\Win_x86\bin

                      Is there D:\Qt4\Tools\OpenSSL\Win_x86_64\bin also?

                      No it is not:
                      This folder I have Win_x64.

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 16 Nov 2020, 12:09 last edited by
                      #10

                      @Andy314 said in SSL for new Qt version:

                      This folder I have Win_x64

                      Then this one should contain the 64bit versions of the libs.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      A 1 Reply Last reply 16 Nov 2020, 12:37
                      0
                      • J jsulm
                        16 Nov 2020, 12:09

                        @Andy314 said in SSL for new Qt version:

                        This folder I have Win_x64

                        Then this one should contain the 64bit versions of the libs.

                        A Offline
                        A Offline
                        Andy314
                        wrote on 16 Nov 2020, 12:37 last edited by Andy314
                        #11

                        Hi @jsulm,

                        that is clear. But what I must do with the folder. I found this in the docu.

                        Qt can be configured to use OpenSSL in three ways:

                        Qt Network loads OpenSSL libraries (DDLs) when first needed, at runtime. If not found, the application continues to run, but fails to handle SSL communication.
                        
                        Qt Network links against the OpenSSL libraries. If they cannot be found at load time, the application fails to start.
                        
                        Qt Network compiles against a static version of the OpenSSL libs, and OpenSSL becomes part of the Qt5Network library.
                        

                        I want avoid to recompile Qt , so that I would prefer the first solution.
                        How can I manage it. Must I made from the included "libcrypto.lib", "libssl.lib"
                        one/two dlls. How must I name it. What needs the Qt Network.

                        The simplest thing would be if anyone know where I can download these damned files? or knows a program to install that has the neededs dlls.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 16 Nov 2020, 19:12 last edited by
                          #12

                          No need to build anything. Copy the dlls in the build folder for now.

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

                          A 1 Reply Last reply 17 Nov 2020, 06:16
                          0
                          • S SGaist
                            16 Nov 2020, 19:12

                            No need to build anything. Copy the dlls in the build folder for now.

                            A Offline
                            A Offline
                            Andy314
                            wrote on 17 Nov 2020, 06:16 last edited by
                            #13

                            @SGaist said in SSL for new Qt version:

                            No need to build anything. Copy the dlls in the build folder for now.

                            I works now ! (Dont know why my first try did not work.)

                            One can take the original dlls as they are to the executable.

                            Thank you very much.

                            1 Reply Last reply
                            0

                            1/13

                            16 Nov 2020, 07:42

                            • Login

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