Access to secrued WebDav Slide

kevnyang <[email protected]> Wed, 19 Sep 2007 04:58:59 -0700 (PDT)
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
HI, all. 

I am writing some java code to access the WebDav server using Slide API. I
can successfully access "http://webdav.host.com" to put and get. But I have
problems in access the secured WebDav Server, i.e. access "
https://webdav.host.com" . Basically 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);
                       res = new WebdavResource(homeurl,cred); 
I get the follwoing ewrror message: "Certificate not Trusted" 

How to handle the certificate? do have to import the certificate to a
truststore? Any help mare greatly appreciated. 

Thanks
Kevin 



-- 
View this message in context: http://www.nabble.com/Access-to-secrued-WebDav-Slide-tf4480521.html#a12775916
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.