Android,访问系统私有/公共证书 [英] Android, access System private/public certificates

查看:34
本文介绍了Android,访问系统私有/公共证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android 系统有一个内置的证书存储.例如,在创建 Exchange 帐户或设置无线 LAN 时会使用此商店中的证书.

Android System has a builtin certificate Store. The certificates from this store are for example used when making an Exchange Account or setting up a wireless LAN.

这有什么方法可以在我自己的应用程序中使用证书吗?我更喜欢这样管理我自己的证书存储.Android 4.0+ 解决方案对我来说是可以接受的.

This there some way to use the certificates in my own application? I would prefer this to managing my own certificate store. An Android 4.0+ solution is acceptable for me.

推荐答案

是的,4.0+ 正是您所需要的:

Yes, 4.0+ is what you'll need though:

使用KeyChain

这是原始博文

摘录:

ICS 中的新功能:钥匙串

为了弥补 ICS 中的差距,有一个名为 KeyChain 那个管理应用程序对系统密钥库的访问并允许用户授予应用程序访问存储在那里的凭据的权限.此外,此 API 使应用程序能够启动安装来自 X.509 证书和 PKCS#12 密钥库的凭据.

To bridge the gap in ICS, there’s a new API named KeyChain that regulates application access to the system key store and allows users to grant application access to the credentials stored there. Additionally, this API enables applications to initiate installation of credentials from X.509 certificates and PKCS#12 key stores.

这篇关于Android,访问系统私有/公共证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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