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.
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.