I am now, writing some android code to access the WebDav server using Slide API. I can successfully access "http://webdav.host.com" to put and get. But I can't access the secured WebDav server, i.e. "https://webdav.host.com".
My code is as follows:
HttpsURL homeUrl = new HttpsURL(webDavHost, 443, webDavPath);
//set user name and password
homeUrl.setUserinfo(webDavUser,webDavPassword);
Credentials cred = new UsernamePasswordCredentials("user", "pwd");
res = new WebdavResource(homeurl,cred);
I get the following error message: "Certificate not Trusted".
How should I do to modify the attribute of HttpsURL object therefore to trust all certication?