top of page
Search

TLS initialization failed and SSL handshake failed QtNetwork[^3^]

  • daumupywna1970
  • Aug 17, 2023
  • 1 min read


I'm starting with qt/c++ and on my project I need to make a json post/get/put but I'm trying to do a simple get request but I have an error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed


I ran into this same issue while trying to integrate the arcGIS geographic mapping system into qt creator and was only able to resolve it after I learned that different releases of Qt require different releases of openSSL. I was working with Qt Creator 5.15.2 and was encountering the error because I had installed the newest version of openSSL. Using this line of code




TLS initialization failed Error in Qt, how to resolve it for...



qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed Error: "TLS initialization failed"


qt.network.ssl: Incompatible version of OpenSSLqt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failedqt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failedVAssert(rc >= 0) failed in CalcEngineMgr.cpp, line 161


Apr 13 16:51:54 openvpn[12898]: Incoming Ciphertext -> TLSApr 13 16:51:54 openvpn[12898]: SSL state (connect): SSLv3/TLS read server certificateApr 13 16:51:54 openvpn[12898]: SSL alert (write): fatal: internal errorApr 13 16:51:54 openvpn[12898]: OpenSSL: error:0A0C0103:SSL routines::internal errorApr 13 16:51:54 openvpn[12898]: TLS_ERROR: BIO read tls_read_plaintext errorApr 13 16:51:54 openvpn[12898]: TLS Error: TLS object -> incoming plaintext read errorApr 13 16:51:54 openvpn[12898]: TLS Error: TLS handshake failed


Error: 17182, Severity: 16, State: 1. TDSSNIClient initialization failed with error 0x139f, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. The group or resource is not in the correct state to perform the requested operation. 2ff7e9595c


 
 
 

Recent Posts

See All

Comments


bottom of page