Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom SSL handling stopped working on Android 2.2 FroYo
    primarykey
    data
    text
    <p>For my app, Transdroid, I am connecting to remote servers via HTTP and optionally securely via HTTPS. For these HTTPS connections with the HttpClient I am using a custom SSL socket factory implementation to make sure self-signed certificates are working. Basically, I accept everything and ignore every checking of any certificate.</p> <p>This has been working fine for some time now, but it no longer work for Android 2.2 FroYo. When trying to connect, it will return an exception:</p> <pre><code>java.io.IOException: SSL handshake failure: I/O error during system call, Broken pipe </code></pre> <p>Here is how I initialize the HttpClient:</p> <pre><code> SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme("http", new PlainSocketFactory(), 80)); registry.register(new Scheme("https", (trustAll ? new FakeSocketFactory() : SSLSocketFactory.getSocketFactory()), 443)); client = new DefaultHttpClient(new ThreadSafeClientConnManager(httpParams, registry), httpParams); </code></pre> <p>I make use of a FakeSocketFactory and FakeTrustManager, of which the source can be found <a href="http://code.google.com/p/transdroid/source/browse/#svn/trunk/src/org/transdroid/util" rel="nofollow noreferrer">here</a>.</p> <p>Again, I don't understand why it suddenly stopped work, or even what the error 'Broken pipe' means. I have seen messages on Twitter that Seesmic and Twidroid fail with SSL enabled on FroYo as well, but am unsure if it's related.</p> <p>Thanks for any directions/help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload