bamlab / react-native-app-security

Easily implement usual security measures in React Native Expo apps. Made by BAM ❤️💙💛
65 stars 1 forks source link

Error - public key algorithm or length is not supported + SPKI #12

Open TyphooNN opened 1 month ago

TyphooNN commented 1 month ago

"plugins": [ [ "@bam.tech/react-native-app-security", { "sslPinning": { "xyz.com": [ "fezfzfzfzffz", "fzefzefzfzfz" ] }, "preventRecentScreenshots": { "ios": { "enabled": true }, "android": { "enabled": true } } } ] ],

These 2 publics keys hashes are good but still get that issue :

=== TrustKit: Generating Subject Public Key Info hash... === TrustKit: Error - public key algorithm or length is not supported === TrustKit: Error - could not generate the SPKI hash for xyz.com === TrustKit: Pin validation failed for xyz.com

i used everything such as : https://github.com/datatheorem/TrustKit/blob/master/docs/getting-started.md#always-provide-at-least-one-backup-pin

matthieugicquel commented 1 month ago

Hello,

This may be linked to this issue and fix on TrustKit: https://github.com/datatheorem/TrustKit/pull/323

I'm waiting on a new TrustKit release to bump the TrustKit version this package depends on.

TyphooNN commented 1 month ago

Thanks did you got an ETA ?