react-native-rsa-native icon indicating copy to clipboard operation
react-native-rsa-native copied to clipboard

fix: add keyTag RSA instance for generateCSRWithEC

Open alessioemireni opened this issue 2 years ago • 0 comments

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

alessioemireni avatar Jul 07 '23 10:07 alessioemireni