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

fix: add keyTag RSA instance for generateCSRWithEC #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alessioemireni
Copy link

@alessioemireni alessioemireni commented Jul 7, 2023

The purpose of this PR is to fix an exception invoking the method generateCSRWithEC.

Before the EC Keypair is created the Keystore delete a key but it lacks the reference of the keyTag.

The error is:

android.security.KeyStoreException: System error (internal Keystore code: 4 message: In delete_key: Trying to unbind the key.

Caused by:
    0: In unbind_key.
    1: In with_transaction.
    2: Trying to get access tuple.
    3: With key.domain = Domain(0).
    4: In load_key_entry_id: Alias must be specified.
    5: Error::Rc(ResponseCode(4))) (public error code: 4 internal Keystore code: 4)

Failed to delete entry: null

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

Successfully merging this pull request may close these issues.

1 participant