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

QWebsocket returns a null peerCertificate()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.3.0
    • WebSockets
    • None
    • Win7 64 MinGW 4.8

      Following the examples sslechosocketserver and sslechosocketclient (which I have working by using a self-signed certificate on the server) I was intrigued to get the client to list e.g. the company name of the server's certificate.
      I assumed that I can use the client QWebsocket's sslConfiguration() to get the current QSslConfiguration and then use the peerCertificate() method to get the server's certificate to inspect the subjectInfo(QSslCertificate::Organization) for example. However, on a successful connection, the sslConfiguration returned from the client websocket is null. The client doesn't have any certificate/keys and the server has a self-signed certificate/key generated using the openssl req command.

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

            kurt.pattyn Kurt Pattyn
            miketrahearn Mike Trahearn
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes