Hello,
I'm working on an application which communicates with remote
server to fetch data.
Server requires a client certificate authentication. I'm adding the
certificate to the keystore. But while connecting, I always get
java.io.IOException: SSL handshake failure: Failure in SSL
library,usually a protocol error
error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake
failure (external/openssl/ssl/s3_pkt.c:1053 0x1be510:0x00000003)
Similar code works without any issue from desktop client.
Below is snippet :-
==================
SSLSocketFactory sslSocketFactory = new SSLSocketFactory(key,"test");
HttpParams parameters = new BasicHttpParams();
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("https", sslSocketFactory,
443));
ClientConnectionManager manager = new
ThreadSafeClientConnManager(parameters, schemeRegistry);
HttpClient httpClient = new
DefaultHttpClient(manager,parameters);
HttpGet ping = new HttpGet("https://192.168.1.45:443");
HttpResponse response = httpClient.execute(cmd); --> error is
thrown here
==========
Any help is appreciated. Thanks in advance.
--
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