SSL not working on Android 2.2 (only in 2.3)

后端 未结 2 1716
逝去的感伤
逝去的感伤 2020-12-09 14:26

I\'m getting this on LogCat when httpsURLConnection.getInputStream() is called

SSL handshake failure: Failure in SSL library, usually a protocol err

相关标签:
2条回答
  • 2020-12-09 14:56

    Make sure the date, time and timezone settings are correct on the 2.2 device.

    0 讨论(0)
  • 2020-12-09 15:08

    I am not sure if you have found the answer, but this seems to be a bug with Android 2.2 not having to analyze the full certificate chain. If you .p12 cert has multiple chain, Android 2.2 doesn't seem to follow the entire chain.

    I had the same problem that I asked the question in this SO question. I asked our administrator to generate a new client certificate that is directly issued by Root CA without having the Sub CA and afterwards 2.2 will work. It does bring the question of security of having client certificate without Sub CA as intermediary though.

    UPDATE: Android team confirm that this is an issue in 2.1/2.2. The details are in the following issue tracker

    0 讨论(0)
提交回复
热议问题