Quote Originally Posted by nuald View Post
Please review arora sources. The main points are:
  1. Set up a network access manager for the QWebPage instance via setNetworkAccessManager().
  2. Override sslErrors() methods in the manager class.

After that you'll have two choices:
  1. Ignore all SSL errors (via QNetworkReply::ignoreSslErrors()), but this is not secure.
  2. Register a new SSL certificate for the required site (via QSslConfiguration::setCaCertificates() or related methods).
This might work smoothly in QWebPage. But in the the QWebEngine it is not possible to handle the ssl error like that. It is needed to:
  • Subclass QWebEnginePage and override the certificateError method, if you want to just ignore all errors, just make it return true OR if you want to deal with each error individally just check the QWebEngineCertificateError and return true/false depending of the error type
  • In your QWebEngineView don't load the page directly, do:
    Qt Code:
    1. QWebEngineView* webView = new QWebEngineView(this);
    2. CustomPage* page = new CustomPage(webView);
    3. page->load(QUrl("https://www.self-signed-wild-page.com"));
    4. webview->setPage(page);
    5. webview->show();
    To copy to clipboard, switch view to plain text mode 

And it's done =D