Replying back to list. On Wed, Nov 23, 2011 at 1:59 AM, Mathew Goldsborough <[email protected]> wrote:
> > Sorry for the lack of detail. The client would be either HttpClient > or HttpsURLConnection as I think both of these would accomplish my > goals. However, if one has a simpler API or is easier to use when > using client/server certificate authentication, I'm open to using one > over the other. Basically what the client is going to do is issue a > GET request to a specific endpoint to which the server will respond > with some XML. Simple enough, right? I just want the client to be > authenticated via 2-way SSL certificate authentication prior to > receiving the response. For httpclient, the easiest way is to initialize this SocketFactory with your keystore, and use it create the HttpClient instance. You need to have your keystore as a raw resource in the apk. Search the list for more details, there are some examples, IIRC. http://developer.android.com/reference/org/apache/http/conn/ssl/SSLSocketFactory.html For HttpsUrlConnection, the procedure is similar, initialize a socket factory and set it to your connection instance. http://developer.android.com/reference/javax/net/ssl/HttpsURLConnection.html -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

