Skip to content

fix: add keyTag RSA instance for generateCSRWithEC#156

Open
alessioemireni wants to merge 1 commit intoamitaymolko:masterfrom
alessioemireni:master
Open

fix: add keyTag RSA instance for generateCSRWithEC#156
alessioemireni wants to merge 1 commit intoamitaymolko:masterfrom
alessioemireni:master

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