I have an android app that call a secured website in a webview. The webview retrieve the certificate to give it to the website.
I have to use the KeyChain.choosePrivateKeyAlias(this, keyChainAliasCallback, null, null, null, -1, CERT_ALIAS); method, and this displays a dialog like this
I'd want to display this window only the first time the user uses the app, but I don't know if it's possible.
I saw about intercepting this with a device/owner profile. Does that mean that it should be on android work ? it's a little blurry to me.
Another solution would be to save certificate and private key retrieve the first time somewhere inaccessible by any other app nor the user. I think about SharedPreferences in private mode.
Am I wrong ?
Thanks for your anwers !
