Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72011

Websocket examples - qt.network.ssl: Incompatible version of OpenSSL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.11.2
    • Network: SSL
    • None
    • Ubuntu 18.04.1 LTS with latest updates as of today
      Qt 5.11.2
      Qt Creator 4.8 rc1
    • Linux/X11, Linux/Other display system

      Hello

      I just did try to build and run SSL Websocket client and server from provided examples

      When both client and server start such messages in terminal

      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
      SSL Echo Server listening on port 1234
      
      

      Both unmodified project did build just fine. Here are all ssl installed packages

      libcurl4-openssl-dev/bionic-updates,bionic-security,now 7.58.0-2ubuntu3.5 amd64 [installed]
      libio-socket-ssl-perl/bionic,bionic,now 2.056-1 all [installed]
      libnet-smtp-ssl-perl/bionic,bionic,now 1.04-1 all [installed]
      libnet-ssleay-perl/bionic,now 1.84-1build1 amd64 [installed]
      libpoconetssl50/bionic,now 1.8.0.1-1ubuntu4 amd64 [installed,automatic]
      libssl-dev/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64 [installed,automatic]
      libssl-doc/bionic-updates,bionic-updates,bionic-security,bionic-security,now 1.1.0g-2ubuntu4.1 all [installed,automatic]
      libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.1 amd64 [installed]
      libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64 [installed]
      openssl/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64 [installed]
      perl-openssl-defaults/bionic,now 3build1 amd64 [installed]
      ssl-cert/bionic,bionic,now 1.0.39 all [installed]
      
      

      After starting ssl server and client I do not see connection made or any other error except what is above. Is there a work around for openssl 1.1.0g which is default ssl library on Ubuntu 18.04? Does this work in upcoming 5.12? 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tpochep Timur Pocheptsov
            oxoocoffee Robert J. Gebis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes