From 8b0652748bd66068076fef2822cbc2351593a1e5 Mon Sep 17 00:00:00 2001 From: Alessio Emireni Date: Fri, 7 Jul 2023 12:25:27 +0200 Subject: [PATCH] fix: add keyTag RSA instance for generateCSRWithEC --- android/src/main/java/com/RNRSA/RNRSAKeychainModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/RNRSA/RNRSAKeychainModule.java b/android/src/main/java/com/RNRSA/RNRSAKeychainModule.java index 0ba9944..0273213 100644 --- a/android/src/main/java/com/RNRSA/RNRSAKeychainModule.java +++ b/android/src/main/java/com/RNRSA/RNRSAKeychainModule.java @@ -103,7 +103,7 @@ public void run() { WritableNativeMap keys = new WritableNativeMap(); try { - RSA rsa = new RSA(); + RSA rsa = new RSA(keyTag); rsa.generateCSRWithEC(cn,keyTag, keySize, reactContext); keys.putString("csr", rsa.getCSR()); promise.resolve(keys);