Solved SSL for new Qt version
-
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 -
@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
-
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.
-
@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 ?
-
@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. -
@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.dllMoving this files to the EXE does not help.
Must I rename it. Needs the new Qt version the same filenames like the older version ? -
@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.) -
@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?
-
@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. -
@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.
-
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.
-
No need to build anything. Copy the dlls in the build folder for now.
-
@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.