overriding the createDefaultSecureSocketFactory() method
91 views
Skip to first unread message
Dave
unread,
Dec 9, 2011, 9:38:02 AM12/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sardine
I am trying to connect to a server that has an encrypted certificate. So there is a password associated with it. I'm not sure how I can extend Sardine's functionality to handle this. The documentation says I can override the createDefaultSecureSocketFactory() method to come up with my own SSL socket factory object. Has anyone does this ? Thanks, David
David Kocher
unread,
May 10, 2012, 10:06:02 AM5/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sardi...@googlegroups.com
Refer to the HttpComponents documentation [1]. You must create your own SSLContext and attach a custom trust manager.