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. Problem with network SSL
Forum Updated to NodeBB v4.3 + New Features

Problem with network SSL

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 2.2k 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.
  • leuatL Offline
    leuatL Offline
    leuat
    wrote on last edited by
    #1

    I have a qt-based application that automatically checks for new version (just checking contents of a text file from https://) and updates itself. I've been using the standard download manager example from http://doc.qt.io/qt-5/qtnetwork-downloadmanager-example.html , and have successfully been using this (together with the deployed ssl-dll-libraries) for quite some time with qt 5.9

    Last week, my computer crashed and I had to reinstall windows. However now, after having upgraded to qt 5.12, the download process fails utterly :

    Downloading https://www... [text file]
    QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("https://www..... filename")
    qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

    This happens both on release / running from qt creator. Any idea what is going on? Do I need to reinstall SSL libraries for qt 5.12 or something?

    ^Leuat

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Qt 5.12 links to OpenSSL 1.1.x which is binary incompatible with OpenSSL 1.0.x. So yes, you need to update and recompile your SSL libs.

      (Z(:^

      D 1 Reply Last reply
      4
      • leuatL Offline
        leuatL Offline
        leuat
        wrote on last edited by
        #3

        Thank you so much! Overwriting the dll's fixed the problem...

        ^Leuat

        1 Reply Last reply
        0
        • sierdzioS sierdzio

          Qt 5.12 links to OpenSSL 1.1.x which is binary incompatible with OpenSSL 1.0.x. So yes, you need to update and recompile your SSL libs.

          D Offline
          D Offline
          di98mase
          wrote on last edited by
          #4

          @sierdzio Hi sierdzio, can you please advise. I get the same error log:
          "QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl"
          But I am not using SSL. I just cant find out what the root cause to this log is and what to do about it. I was hoping that maybe you can clarify why my code generates this log?

          I have posted a question on stackoverflow but so far nobody answered it. I am using Creator 4.8.0 and QT 5.12.0.

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            Check if it works with Qt 5.11.3. The newest release is so buggy I'd rather not advise anybody to use it at least until 5.12.1 comes out.

            How do you use QtNetwork then? Do you use QUrl with "https://" anywhere? Do you connect to same address many times in quick succession? The source of that message is this line in Qt sources: https://code.woboq.org/qt5/qtbase/src/network/access/qnetworkreplyhttpimpl.cpp.html#1884

            (Z(:^

            S 1 Reply Last reply
            0
            • sierdzioS sierdzio

              Check if it works with Qt 5.11.3. The newest release is so buggy I'd rather not advise anybody to use it at least until 5.12.1 comes out.

              How do you use QtNetwork then? Do you use QUrl with "https://" anywhere? Do you connect to same address many times in quick succession? The source of that message is this line in Qt sources: https://code.woboq.org/qt5/qtbase/src/network/access/qnetworkreplyhttpimpl.cpp.html#1884

              S Offline
              S Offline
              SanekT197
              wrote on last edited by
              #6

              Also tormented. On 5.11.3, I did not have such a problem.
              I wonder how it will be on 5.12.1 ...

              P.S. OS: MacOS 10.14

              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