use of SSL

115 views
Skip to first unread message

Abderrazak

unread,
Nov 10, 2014, 8:10:36 AM11/10/14
to sardi...@googlegroups.com
Hi

I'm trying to use Sardine as my webDAV client to put a document on an Alfresco repository but need to authenticate using SSL

I didn't figured out how to do it within the wiki

here's what I had tried :

1. add javax.net.ssl.* as my VM arguments and tried the simple code as the wiki
then
2. tried to override SardineImpl#createDefaultSecureSocketFactory as indicated within the wiki but it seems I'm missing something

both : 
com.github.sardine.impl.SardineException: Unexpected response (401 Unauthorized)

Abderrazak,

Jon Stevens

unread,
Nov 10, 2014, 12:24:18 PM11/10/14
to sardi...@googlegroups.com
A 401 response from the server means that the server rejected you, not that SSL isn't working. =)

jon


--
You received this message because you are subscribed to the Google Groups "sardine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sardine-dav...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abderrazak BOUADMA

unread,
Nov 10, 2014, 2:27:26 PM11/10/14
to sardi...@googlegroups.com

Hi Jon and thanks for your answer

Indeed the certificate by which I was trying to authenticate was wrong

Reply all
Reply to author
Forward
0 new messages