You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the RSA.generateKeys() method I've noticed that it generates differently formatted keys depending on the OS. I've noticed that the Android one is very differently generated than the iOS one since the headers are different and on android you have a lot more new lines.
it's causing us problems because our backend needs to verify the JWT that's signed by the device's private key, but when our backend gets the public key from the Android device it says its not in SPKI. The backend uses Jose to verify the SPKI public key.
I've looked at the native modules for it and noticed there are differences between the java and swift code. Is it maybe a problem with the native modules how they generate the keys on Android or with Jose?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
@aleksa-milojkovic-accordia
Seems there is a fn -> RSAKeychain.getPublicKeyRSA for iOS only to get public key in pksc1 format similar to android. I used this function on iOS & the response is now formatted similar to android.
You can give a try with RSAKeychain instead of RSA. Check this older thread as well #110
Have the same problem.
RSA.generateKeys(2048) - this method returns diff public length for Android and IOS.
On IOS it's longer.
There is no fix for it.
While using the RSA.generateKeys() method I've noticed that it generates differently formatted keys depending on the OS. I've noticed that the Android one is very differently generated than the iOS one since the headers are different and on android you have a lot more new lines.
Here is the example code And here are the the generated keys for Android and iOS
Android.txt
iOS.txt
it's causing us problems because our backend needs to verify the JWT that's signed by the device's private key, but when our backend gets the public key from the Android device it says its not in SPKI. The backend uses Jose to verify the SPKI public key.
Jose.txt - this is the output we get from JOSE
I've looked at the native modules for it and noticed there are differences between the java and swift code. Is it maybe a problem with the native modules how they generate the keys on Android or with Jose?
Thank you in advance.
The text was updated successfully, but these errors were encountered: