Solved TLS initialization failed
-
hello i just got a mistake like this when doing post request Qt version 5.14.1 Windows 10
-
@artwaw no, don't link them. The pre-built Qt packages load OpenSSL dynamically. They are not build against it for international restriction about distribution of application making use of cryptography.
-
Hi,
your .exe file can't find libcrypto and libssl dlls. Are they on the system path or copied into the same folder as your .exe? -
I dont understand what you mean?
-
@Raii OpenSSL is distributed as a libraries (dll files under windows). Your program makes use of them by calling exposed functions of those. They must be visible for the program at runtime - the easiest way to do so is to copy them into your .exe folder.
Also, if I am not mistaken, you should link them in your .pro file, so in there should be something along:``
(cut)
Of course paths should be adjusted to your case.
Edit: removed wrong advice. -
@artwaw no, don't link them. The pre-built Qt packages load OpenSSL dynamically. They are not build against it for international restriction about distribution of application making use of cryptography.
-
@SGaist Noted. Thank you.