Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Adding OpenSSL to project
Qt 6.11 is out! See what's new in the release blog

Adding OpenSSL to project

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 697 Views 1 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.
  • L Offline
    L Offline
    levi.hrb
    wrote on last edited by
    #1

    Hello,
    I'm trying to build my project for Windows. On Linux everything works fine, but under Windows the following error occurs:

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

    When I install OpenSSL before installing my software everything works fine, but I don't want others to install it manually. How can I include OpenSSL in my project? I already tried to add some recommended .dll files but nothing worked yet. I'm using MinGW to deploy my project, I would really appreciate help because I am very new to this...

    raven-worxR 1 Reply Last reply
    0
    • L levi.hrb

      Hello,
      I'm trying to build my project for Windows. On Linux everything works fine, but under Windows the following error occurs:

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

      When I install OpenSSL before installing my software everything works fine, but I don't want others to install it manually. How can I include OpenSSL in my project? I already tried to add some recommended .dll files but nothing worked yet. I'm using MinGW to deploy my project, I would really appreciate help because I am very new to this...

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @levi-hrb
      the runtime linker must be able to find the openssl libs/dlls.
      For example in the PATH environment variable, or directly next to your application exe.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • L Offline
        L Offline
        levi.hrb
        wrote on last edited by
        #3

        After building the release I added "libeay32.dll" and "ssleay32.dll" next to the exe file, but it still doesn't work. Do I have to do anything else?

        raven-worxR 1 Reply Last reply
        0
        • L levi.hrb

          After building the release I added "libeay32.dll" and "ssleay32.dll" next to the exe file, but it still doesn't work. Do I have to do anything else?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @levi-hrb
          what Qt version are you using. The libs u copied are OpenSSL v1.0.x
          You might need to copy the OpenSSL v1.1.x libs

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          1

          • Login

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