-
Notifications
You must be signed in to change notification settings - Fork 913
Web view Fix for Self Signed Certificates #630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix for **self signed certificates**.
src/gui/wizard/webview.cpp
Outdated
|
|
||
| bool WebEnginePage::certificateError(const QWebEngineCertificateError &certificateError) { | ||
| //handle webview certificate errors here | ||
| return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, fix the indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means we just accept all self signed certificates right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
certificates are already accepted or rejected at the setup page.
indentation fixed.
|
If the WebView does not have certificates (in the setup wizard). This will probably not help. |
|
|
||
| bool WebEnginePage::certificateError(const QWebEngineCertificateError &certificateError) { | ||
| //handle webview certificate errors here | ||
| return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so after looking it up. really fixing it is not so straight forward as the webengineview uses it own network stack. So no QNAM etc.
What we could do. Is pass in the original URL we try to connect to. As we have to accept that cert before continuing.
If the url matches the cert here. Then we continue. Else we should still fail.
How does that sound?
|
See #758 |
Fix for self signed certificates.