Android:打开密钥库作为资产来制作 SSLSocketFactory
我有一个 Bouncy Castle 密钥库,我想用它来连接到 SSLSocketFactory。 在“桌面”Java 中执行此操作很容易,但是如何在 android 上执行此操作。
无论您放入 asset 还是 res/raw 似乎都没有太大区别 - 当尝试打开它并实例化 KeyStore 实例(在本例中为 java.security.KeyStore )以传递给 SSLSocketFactorys 构造函数时,问题就出现了。
以前有人成功过吗? “阅读”并打开它的最佳方式是什么?任何指针或代码片段都将受到欢迎。
非常感谢
大学教师
I have a Bouncy Castle keystore, which I'd like to use to connect to an SSLSocketFactory.
Doing this in "desktop" Java is easy, but how do you do it on the android.
It doesn't seem to make much difference whether you put in assets or res/raw - the problem comes when trying to open it up and instantiate an instance of KeyStore (java.security.KeyStore in this case) to pass to SSLSocketFactorys constructor.
Has anyone had success with this before? What's the best way of "reading" this and opening it? Any pointers or code snippets would be most welcome.
Many thanks
Don
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该这样做:
ez24get 将是密钥库的密码。
This should do:
ez24get would be the password for the keystore.