Just an off the top of my head, but do you have a self-signed certificate?

BTW, I got your first email - double posting really isn't necessary

On 24 Jun 2010, at 22:38, jackace wrote:

> Hi,
> 
> I am sure this has been discussed in this group, but I couldn't find
> that thread, so bear with it, or if possible merge it with the
> original.
> 
> I am using httpclient for my android app and I have a local site which
> has a few https pages. Since default httpclient doesnot allow self-
> signed certificates I am using  "EasySSLFactory" and
> "EasyX509TrustManager", which are mentioned in httpclient
> documentation.
> 
> <code>
> client = new DefaultHttpClient();
> client.getConnectionManager().getSchemeRegistry().register(new
> Scheme("https", new EasySSLSocketFactory(), 443));
> </code>
> 
> The problem is if I use this SSLFactory in my android app, I am
> getting correct response from my site's https pages, but I get "SSL
> handshake failure: I/O error during system call, Unknown error: 0" for
> sites such as "gmail.com", "ymail.com". If I don't use
> "EasySSLSocketFactory" I get response from these sites but get
> exception for my site.
> 
> The funny thing is that this page fetch code works fine as a
> standalone java application.
> 
> What could be the problem. Please help me with this.
> 
> Thanks and Regards
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> 
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
> 
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to