Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem with network SSL



  • 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?


  • Moderators

    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.


  • Moderators

    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.



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



  • @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.


  • Moderators

    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



  • 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


Log in to reply