Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TLS initialization failed on Qt windows programm
Forum Updated to NodeBB v4.3 + New Features

TLS initialization failed on Qt windows programm

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    msauer75
    wrote on last edited by msauer75
    #1

    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 -leay32

    But 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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you add the folder containing the OpenSSL dlls to the PATH environment variable in the Run part of the Project panel ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved