For security reasons I want to store my private key in the HSM and then share the private key with another app via the KeyChain
. The KeyStore
mentions that it can be backed by the HSM but I haven't found any documentation that states it's possible with the KeyChain
.
Based on the KeyChain documentation, the KeyChain is the proper way to share between apps:
Use the KeyChain API when you want system-wide credentials. When an app requests the use of any credential through the KeyChain API, users get to choose, through a system-provided UI, which of the installed credentials an app can access. This allows several apps to use the same set of credentials with user consent.
So, is it possible to secure the Android KeyChain with an HSM?