Qt6 topics merged with General

OpenSSL Problems

  • Hi everyone!

    I'm facing issues while using QNetworkAccessManager for HTTPS requests. I tried with my server but also with some link on badssl, to try to handle SSL Errors.

    So this is my code:

    manager = new QNetworkAccessManager();
              QSslConfiguration cfg(QSslConfiguration::defaultConfiguration());

    Where "ignorsa" is my sslErrors slot handler and managerFinished is the slot handler when everything is ok.

    The only reply I can get is "QNetworkReply::SslHandshakeFailedError" and the errorString "SSL Handshake failed", from the slot managerFinished, so sslErrors signals is not emitted!

    But the Qt Doc says that when this happens the sslErrors should be emitted! And in my case it not! Never!

    I'm going crazy on this, because I thing this is something stupid and I can't figure out!

    I'm currently using Qt 5.12.6 LTS and updated few hours ago to OpenSSL 1.1.1b (Feb 2019).

    If I try to write in console the version used for the build and for the runtime it says:

    Support SSL:  true
    SSL version used for build:  "OpenSSL 1.1.1b  26 Feb 2019"
    SSL version used for run-time:  269488207

    Thank you for your help!

  • Lifetime Qt Champion


    What OS are you on ?

  • Hi @SGaist!

    I'm currently using Windows 7 Professional SP1 x64.

    Any hint?

  • Lifetime Qt Champion

    Where are your OpenSSL dlls stored ? Can they be found by the application ?

Log in to reply