-
Notifications
You must be signed in to change notification settings - Fork 31
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
Custom sertificate processing (need advanced example?) #6
Comments
@Addition... |
QWebDavLib contains signal checkSslCertifcate(), and QWebdav::sslErrors() contains next comment:
// user has to check the SSL certificate and has to accept manually
For example, I got next SSL errors (Qt 4.8.7, Fedora 23):
"The host name did not match any of the valid hosts for this certificate"
"The certificate is self-signed, and untrusted"
(I'm using WebDAV on Bitnami Ownclowd development virtual machine, and self-signed certificate is normal in this situation. WebDAV access without SSL (via HTTP/port 80) also works correctly for this server from QWebDavLib.)
How I can accept certificate? QWebdav::sslErrors() don't pass QNetworkReply* into checkSslCertifcate(), and after signal processing reply->abort() will be called anyway.
According qwebdav.h, QWebdav::acceptSslCertificate() can solve this problem, but where it must be called? In checkSslCertifcate() processing slot? It not work for me.
Can you add second, more advanced exapmle, illustrating manual certificate accepting?
Thanks.
The text was updated successfully, but these errors were encountered: