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

QWebSocket ignore ignoreSslErrors settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.6.1
    • WebSockets
    • None

      When set ignoreSslErrors to ignore some ssl errors, the error are not ignored.

      Sample:

      QList<QSslError> errorsToIgnore;
      errorsToIgnore<<QSslError(QSslError::SelfSignedCertificate)<<QSslError(QSslError::HostNameMismatch);
      K_Websocket->ignoreSslErrors(errorsToIgnore);
      K_Websocket->open(QUrl("wss://foo",QUrl::StrictMode));
      

      When the server certificate is self signet and for an other host name, then the signal sslErrors will emitted.
      The QList<QSslError> list will contains:
      The host name did not match any of the valid hosts for this certificate
      The certificate is self-signed, and untrusted

      As far as I understand the documentation, these errors should then be ignored.

        For Gerrit Dashboard: QTBUG-56311
        # Subject Branch Project Status CR V

            kurt.pattyn Kurt Pattyn
            tuxmaster Frank Büttner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes