Unsolved TLS initialization failed on Qt windows programm
-
Re: QSslSocket: TLS initialization Failed
Hi,
I have the same problem which was discussed in this thread but I can't find a solution. I get the following messages from my programme:
QJsonRpcHttpClient::sendMessage
QSslSocket::sslLibraryVersionNumber = 0
QSslSocket::sslLibraryVersionString = ""
QSslSocket::sslLibraryBuildVersionNumber = 268443919
QSslSocket::sslLibraryBuildVersionString = "OpenSSL 1.0.2p 14 Aug 2018"qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
In the qmake files I added the ssl libraries:
INCLUDEPATH += d:/OpenSSL-Win64_102/include/openssl
LIBS += -Ld:/OpenSSL-Win64_102 -lssl32 -leay32But with Win 10 and Android my programm can't establish a connection to a https:// site. With Linux I don't have these problems.
I use Qt 5.12.0 on Win 10 and installed Win64OpenSSL-1_0_2r in d:\OpenSSL-Win64.
Can you help me, to solve this problem?
Thank you for your help.
BR
martin -
Hi,
Did you add the folder containing the OpenSSL dlls to the
PATH
environment variable in the Run part of the Project panel ?