Thanks for quick reply.
        It works with other SSL servers.  I've verified that the
server certificate is accepted ( as I don't see any certificate not
trusted error ) . In my case, the client requires to submit client
certificate to the server for client authentication during handshake.
I think the  issue is while submitting the client certificate to the
server. Any sample code for submitting client certificate will be of
great help.

On Mar 4, 2:55 am, social hub <[email protected]> wrote:
> have you tried with SSL server on internet like google or something and see
> if that has worked. Then you can work your way down to your server . prob it
> needs a set of predefined minimum ciphers and hashing algorithms which are
> avalilable on desktop and not on the device. hope this helps
>
> On Wed, Mar 3, 2010 at 5:01 AM, gemini <[email protected]> wrote:
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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

Reply via email to