On Fri, Feb 25, 2011 at 11:28 AM, Sebastian Schmid < [email protected]> wrote:
> How can i pass the javax.net.ssl.SSLSocketFactory from the SSLContext into > my SSLSocketFactory (org.apache.http.conn.scheme.SSLSocketFactory)? > Using the org.apache.http.conn.scheme.SSLSocketFactory that takes a javax.net.ssl.SSLSocketFactory? Of course, looking at the org.apache.http.conn.scheme.SSLSocketFactory options, one of them takes the KeyStore and does all the work to create the KeyManager and SSLContext internally. this probably does what you want: public SSLSocketFactory(final KeyStore keystore, final String keystorePassword) If you are Android 2.3+, I'd suggest throwing out Apache HTTP Client and just use javax.net.ssl.HttpsURLConnection instead. -bri -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-security-discuss?hl=en.
