Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not using "AndroidKeyStore" ? #126

Open
vricosti opened this issue May 21, 2024 · 0 comments
Open

Not using "AndroidKeyStore" ? #126

vricosti opened this issue May 21, 2024 · 0 comments

Comments

@vricosti
Copy link

vricosti commented May 21, 2024

Hi,

I would like to be able to call the equivalent java code:

KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore");
Certificate certificate = keyStore.getCertificate(CERT_ALIAS);
Key key = keyStore.getKey(KEY_ALIAS, null);
if (certificate != null && key != null) {
     certAvailable = true;
     return;
}

or

keyStore.setKeyEntry(KEY_ALIAS, generateKeyPair.getPrivate(), null, new Certificate[]{generate});
keyStore.setCertificateEntry(CERT_ALIAS, generate);

but in you code I can see a constant to "AndroidKeyStore" but it doesn't seem to be used.
So your library do not allow to access keystore ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant