Skip to content

Custom sertificate processing (need advanced example?) #6

@DarkHobbit

Description

@DarkHobbit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions