SSL context creation error - Qt

I tried everything that was mentioned in this Question

but nothing happened. The binary works fine on Windows 64-bit, but almost always shows an error

Error Creating SSL Context() 

on Windows 32-bit. I tried the demo of the http client.

+13
c ++ qt openssl
source share
2 answers

Finally, I found a solution. I downloaded the dll from the dll website. You need to take these libraries

 - libeay32.dll - libssl32.dll - ssleay32.dll 

from this site here Win32 OpenSSL v1.0.2 file for 32 bits, if you use the MSVC ++ compiler

After installing the above binary code, copy the above three DLLs to the directory containing your binary.

+11
source share

I recommend this source for OpenSSL Windows binary files. These binaries have no external dependencies and are tested with 32-bit and 64-bit Qt5.

Update : OpenSSL 1.0 and 1.1 are not binary or API compatible. Starting with Qt 5.12 (of course, 5.12.4), version 1.1 is apparently the standard OpenSSL backend in Qt, although I heard that it can be configured to use 1.0. I am testing this source for Windows OpenSSL 1.1 builds, there are no problems yet: https://bintray.com/vszakats/generic/openssl

+10
source share

All Articles