Qt error message “qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed”

前端 未结 3 1117
面向向阳花
面向向阳花 2021-01-22 04:18

I get the following error when I try to run my Qt application:

qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
qt.net

3条回答
  •  一个人的身影
    2021-01-22 05:09

    Here is the solution (that worked for me):

    • Check which version of OpenSSL was used for the Qt build with qDebug (see Fareanor answer).
    • Download a close version of OpenSSl for Windows 64 bits as it is my OS.
    • Execute the downloaded installer and check 'Copy OpenSSL DLLs to: The Windows system directory' checkbox.

提交回复
热议问题