读取错误:未能在SSL库,通常一个协议错误 [英] Read error: Failure in SSL library, usually a protocol error

查看:1484
本文介绍了读取错误:未能在SSL库,通常一个协议错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用DefaultHttpClient访问一个安全的网址。 我使用portecel工具创建BKS文件。

使用相同的创建的JKS文件工作正常的java程序,但BKS抛出以下异常:

java.io.IOException异常:读取错误:未能在SSL库,通常一个协议错误

我能够打开一个密钥存储浏览器中的BKS文件,并查看详细信息。

同样是做工精细的的Andr​​oid 2.3而不是2.2

让我知道如果任何人面临这样的问题,并解决它。

解决方案

我有这个问题,改造图书馆

。我解决了这个变化, https://10.0.3.2:4567 到的 http://10.0.3.2:4567 在我的网址连接。

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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆