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

Problems encountered when upgrading openssl1.0.2k to openssl1.1.1



  • I print the log in the main function, as follows.

    qDebug() << QSslSocket::supportsSsl()  << QSslSocket::sslLibraryVersionNumber() << QSslSocket::sslLibraryVersionString();
    
    1. Development environment: Fedora 14, QT5.3.2, openssl1.0.2k; it is ok.
      The installed openssl version is 1.0.2k in host machine, runtime openssl version is also 1.0.2k. so these are ok. log as follows,
    20-10-24 20:29:40 Pivotal(main.cpp | 86): ============Application============
    20-10-24 20:29:40 Debug(main.cpp | 96): true 268443839 "OpenSSL 1.0.2k  26 Jan 2017"
    20-10-24 20:29:40 Debug(singleton.h | 121): try create instance with atom int: 6Config
    
    1. Development environment: Fedora 14, QT5.3.2, openssl1.1.1; it is failed.
      (1) Report errors QSslSocket: QSslSocket: cannot resolve TLSv1_1_client_method, cannot resolve TLSv1_2_client_method, ....; why Report errors?
      (2) The installed openssl version is 1.1.1 in host machine, but why runtime openssl version is 1.0.0a-fips that comes with the host machine? log as follows,
    20-10-24 19:17:02 Pivotal(main.cpp | 86): ============Application============
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve TLSv1_1_client_method
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve TLSv1_2_client_method
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve TLSv1_1_server_method
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve TLSv1_2_server_method
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve SSL_select_next_proto
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve EC_KEY_new_by_curve_name
    20-10-24 19:17:02 Warning(qsslsocket_openssl_symbols.cpp | 126): QSslSocket: cannot resolve EC_KEY_free
    20-10-24 19:17:02 Debug(main.cpp | 96): true 268435459 "OpenSSL 1.0.0a-fips 1 Jun 2010"
    20-10-24 20:29:40 Debug(singleton.h | 121): try create instance with atom int: 6Config
    

  • Lifetime Qt Champion

    Hi,

    You cannot just replace OpenSSL 1.0 with 1.1. The 1.1 release is not backward compatible.

    Furthermore, OpenSSL 1.1 support has started with Qt 5.10.0.


Log in to reply