Android, access System private/public certificates

允我心安 提交于 2021-02-10 08:36:44

问题


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.

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.


回答1:


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

Using KeyChain

Here's the original blogpost

Excerpt:

New in ICS: KeyChain

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.



来源:https://stackoverflow.com/questions/10047828/android-access-system-private-public-certificates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!