overriding the createDefaultSecureSocketFactory() method

91 views
Skip to first unread message

Dave

unread,
Dec 9, 2011, 9:38:02 AM12/9/11
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
to sardi...@googlegroups.com
Refer to the HttpComponents documentation [1]. You must create your own SSLContext and attach a custom trust manager.

-- David


[1] http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e537

Eduardo Ponce de Leon

unread,
Nov 16, 2012, 3:22:30 PM11/16/12
to sardi...@googlegroups.com
do you have any examples on how u did this?
Reply all
Reply to author
Forward
0 new messages