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

Incompatible version of OpenSSL With Qt 5.12.2



  • Hello All,

    Currently i am using Qt 5.12.2 with "OpenSSL 1.1.1f 31 Mar 2020" in fedora.
    and in Qt Lib Build Version is : "OpenSSL 1.0.2k-fips 26 Jan 2017".

    how can enable openssl in qt 5.12.2 without degrading qt version and openssl version.

    below is output i am getting if i tried to use openssl .

    Support SSL: false

    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback
    qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings
    qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup
    qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init
    qt.network.ssl: QSslSocket: cannot resolve sk_new_null
    qt.network.ssl: QSslSocket: cannot resolve sk_push
    qt.network.ssl: QSslSocket: cannot resolve sk_free
    qt.network.ssl: QSslSocket: cannot resolve sk_num
    qt.network.ssl: QSslSocket: cannot resolve sk_pop_free
    qt.network.ssl: QSslSocket: cannot resolve sk_value
    qt.network.ssl: QSslSocket: cannot resolve SSL_library_init
    qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings
    qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index
    qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method
    qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain
    qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    qt.network.ssl: QSslSocket: cannot resolve SSLeay
    qt.network.ssl: Incompatible version of OpenSSL


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Either:

    • update Qt to at least 5.12.4
    • rebuilt Qt 5.12.2 providing the OpenSSL version your want to use

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Either:

    • update Qt to at least 5.12.4
    • rebuilt Qt 5.12.2 providing the OpenSSL version your want to use

  • Moderators

    @lNarthan
    as @SGaist said, OpenSSL 1.1 is default since 5.12.4
    For each version below see this


Log in to reply