QT network programming appears when requesting the website: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
The computer may not have the correct OpenSSL installed.
1. we use the following code to determine the OpenSSL version our QT support
#include <QSslSocket> #include <QDebug> qDebug()<< QSslSocket::sslLibraryBuildVersionString();
My output here is:
you can see that my OpenSSL version is bit 1.1.1. Download the corresponding version of OpenSSL
2. on this website: http://slproweb.com/products/Win32OpenSSL.html Download the corresponding OpenSSL version. One thing to note is: if you use MinGW 32-bit kit, Download
otherwise, if you use MinGW 64 bit kit, Download win64 OpenSSL. Note that both compilers only need to download the EXE executable of the light version.
3. Install OpenSSL
click next all the time. In the last step, set the folder to bin.
4. Copy the file
I downloaded the Win64 version of OpenSSL here. Therefore, copy the libcrypto-1_1-x64.dll and libssl-1_1-x64.dll files in the OpenSSL folder to the qt installation directory. The specific directory is here: D:\Qt\Qt5.14.0\5.14.0\ mingw73_64\bin. If you download 32-bit, you only need to put it in the D:\Qt\Qt5.14.0\5.14.0\mingw73_32\bin directory, and the others are similar.
if you run the project file again, QT will not report the error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- [Solved] QT error: the packaged exe of Enigma virtual box reports an error cannot load library qt5core.dll
- [Solved] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- QT Error: Failed to create vertex shader [Three Methods to Fix]
- Qt Error: Debug Assertion Failed [How to Solve]
- [Solved] Qt UpdateLayeredWindowIndirect failed for ptDst Error
- How to Solve QT and PCIe interactive loading setupapi.H error
- [Solved] Qt Vtk wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid.
- [Solved] zabbix Error: Cannot perform request: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
- QT calls the API of ffmpeg error [How to Solve]
- [Solved] PySide2 Error: This application failed to start because no Qt platform plugin could be initialized
- PCL 1.8.1 VTK 9.0 QT 5.14.9 [How to Solve]
- QT Error: ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe‘ failed
- VS Open the UI file of QT Crash and Report Error [How to Solve]
- QT Creator Error while building deploying project
- How to Solev QT compilation error “cannot find – LGL”
- QT error: – LGL not found [How to Solve]
- QT Error: use of undeclared identifier [How to Solve]
- QT solves error: use of deleted function and is private within this context
- Qt5core.pdb is not loaded [How to Solve]
- [Solved] Qt Error: undefined reference to xxxxx