读取错误:未能在SSL库,通常一个协议错误 [英] Read error: Failure in SSL library, usually a protocol error
问题描述
我想用DefaultHttpClient访问一个安全的网址。 我使用portecel工具创建BKS文件。
使用相同的创建的JKS文件工作正常的java程序,但BKS抛出以下异常:
java.io.IOException异常:读取错误:未能在SSL库,通常一个协议错误
我能够打开一个密钥存储浏览器中的BKS文件,并查看详细信息。
同样是做工精细的的Android 2.3而不是2.2
让我知道如果任何人面临这样的问题,并解决它。
解决方案我有这个问题,改造图书馆
I am trying to access an secure url by using a DefaultHttpClient. I am creating BKS file using portecel tool.
The jks file created using the same is working fine in java program but the bks is throwing the following exception:
java.io.IOException: Read error: Failure in SSL library, usually a protocol error
I am able to open the bks file in a keystore explorer and see the details.
The same is working fine in Android 2.3 but not in 2.2
let me know if anybody has faced such problem and solved it.
I had this problem with Retrofit Library. I solved this change, "https://10.0.3.2:4567" to "http://10.0.3.2:4567" in my URL connection.
这篇关于读取错误:未能在SSL库,通常一个协议错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!