|
List Info
Thread: Access to secrued WebDav Slide
|
|
| Access to secrued WebDav Slide |
  United States |
2007-09-19 06:58:59 |
HI, all.
I am writing some java code to access the WebDav server
using Slide API. I
can successfully access "http://webdav.host.com&q
uot; 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-sec
rued-WebDav-Slide-tf4480521.html#a12775916
Sent from the Jakarta Slide - User mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|
|
| Re: Access to secrued WebDav Slide |
  United States |
2007-09-19 07:16:44 |
Kevin,
I am not sure if this helps or not but you might want to
give this a
try: http://blogs.sun.com/andreas/entry/no_more_unable_to_fi
nd
Ali.
kevnyang wrote:
> HI, all.
>
> I am writing some java code to access the WebDav server
using Slide API. I
> can successfully access "http://webdav.host.com&q
uot; 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
>
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|
|
| Re: Access to secrued WebDav Slide |
  United States |
2007-09-19 08:28:15 |
Thanks. Ali. I did have a look. But I still can not get the
code work
properly. Can anybody share me his/her experience in using
Slide API to
write java code to access the the SECURED WebDav
server(i.e.
https://webdav.host.com)
?
Look forward to it....Many thanks!
Kevin
ali-10 wrote:
>
> Kevin,
>
> I am not sure if this helps or not but you might want
to give this a
> try: http://blogs.sun.com/andreas/entry/no_more_unable_to_fi
nd
>
> Ali.
>
> kevnyang wrote:
>> HI, all.
>>
>> I am writing some java code to access the WebDav
server using Slide API.
>> I
>> can successfully access "http://webdav.host.com&q
uot; 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
>>
>>
>>
>>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
> For additional commands, e-mail: slide-user-help jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Access-to-sec
rued-WebDav-Slide-tf4480521.html#a12777432
Sent from the Jakarta Slide - User mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|
|
| Re: Access to secrued WebDav Slide |
  United States |
2007-09-19 09:09:23 |
Hi
I have sorted the problem. It is now working... :jumping:
Regards
Kevin
kevnyang wrote:
>
> Thanks. Ali. I did have a look. But I still can not
get the code work
> properly. Can anybody share me his/her experience in
using Slide API to
> write java code to access the the SECURED WebDav
server(i.e.
> https://webdav.host.com)
?
>
> Look forward to it....Many thanks!
>
> Kevin
>
>
>
>
> ali-10 wrote:
>>
>> Kevin,
>>
>> I am not sure if this helps or not but you might
want to give this a
>> try: http://blogs.sun.com/andreas/entry/no_more_unable_to_fi
nd
>>
>> Ali.
>>
>> kevnyang wrote:
>>> HI, all.
>>>
>>> I am writing some java code to access the
WebDav server using Slide API.
>>> I
>>> can successfully access "http://webdav.host.com&q
uot; 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
>>>
>>>
>>>
>>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
>> For additional commands, e-mail:
slide-user-help jakarta.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Access-to-sec
rued-WebDav-Slide-tf4480521.html#a12778289
Sent from the Jakarta Slide - User mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|
|
| Re: Access to secrued WebDav Slide |
  United States |
2007-09-19 09:11:56 |
Kevin,
Would you share your findings with us?
Ali.
kevnyang wrote:
> Hi
>
> I have sorted the problem. It is now working...
:jumping:
>
> Regards
> Kevin
>
>
>
> kevnyang wrote:
>
>> Thanks. Ali. I did have a look. But I still can
not get the code work
>> properly. Can anybody share me his/her experience
in using Slide API to
>> write java code to access the the SECURED WebDav
server(i.e.
>> https://webdav.host.com)
?
>>
>> Look forward to it....Many thanks!
>>
>> Kevin
>>
>>
>>
>>
>> ali-10 wrote:
>>
>>> Kevin,
>>>
>>> I am not sure if this helps or not but you
might want to give this a
>>> try: http://blogs.sun.com/andreas/entry/no_more_unable_to_fi
nd
>>>
>>> Ali.
>>>
>>> kevnyang wrote:
>>>
>>>> HI, all.
>>>>
>>>> I am writing some java code to access the
WebDav server using Slide API.
>>>> I
>>>> can successfully access "http://webdav.host.com&q
uot; 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
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
------------------------------------------------------------
---------
>>> To unsubscribe, e-mail:
slide-user-unsubscribe jakarta.apache.org
>>> For additional commands, e-mail:
slide-user-help jakarta.apache.org
>>>
>>>
>>>
>>>
>>
>
>
|
|
[1-5]
|
|