react-native-ssl-pinning icon indicating copy to clipboard operation
react-native-ssl-pinning copied to clipboard

Expo EAS support?

Open ftzi opened this issue 4 years ago • 9 comments

I need SSL to tokenize the user credit card so I can then send the token to my server and proceed with the payment.

I am a Expo EAS user, but there doesn't seem to be a expo-config plugin available yet.

There is this guy who wrote on how to do it: https://forums.expo.dev/t/react-native-expo-ssl-pinning/57455/5. However, I have 0 experience with expo-config-plugins and I don't have a MacOS to use XCode.

Can someone save me? :X

Also, may be important to say that I am using a Webview, and the to tokenize is on it.

ftzi avatar Dec 03 '21 23:12 ftzi

+1 Would be greatly appreciated @MaxToyberman

james-em avatar Jan 11 '22 14:01 james-em

+1

kadirguloglu avatar Jan 13 '22 10:01 kadirguloglu

FWIW, I am not the maintainer of react-native-ssl-pinning, but this package seems to work just fine with expo:

yarn add react-native-ssl-pinning
./node_modules/.bin/react-native link
expo prebuild

Works like a charm!

erulabs avatar Jan 19 '22 18:01 erulabs

FWIW, I am not the maintainer of react-native-ssl-pinning, but this package seems to work just fine with expo:

yarn add react-native-ssl-pinning
./node_modules/.bin/react-native link
expo prebuild

Works like a charm!

Ahn... But those two below are bare workflow commands, no?

ftzi avatar Jan 19 '22 18:01 ftzi

I need SSL to tokenize the user credit card so I can then send the token to my server and proceed with the payment.

I am a Expo EAS user, but there doesn't seem to be a expo-config plugin available yet.

There is this guy who wrote on how to do it: https://forums.expo.dev/t/react-native-expo-ssl-pinning/57455/5. However, I have 0 experience with expo-config-plugins and I don't have a MacOS to use XCode.

Can someone save me? :X

Also, may be important to say that I am using a Webview, and the to tokenize is on it.

I managed to change the Android network security configuration by creating a custom config plugin that works with EAS builds, see https://stackoverflow.com/a/70775576/4350421. You could use the same approach to pin the certificate as outlined here: https://developer.android.com/training/articles/security-config#CertificatePinning

olarcher avatar Jan 19 '22 18:01 olarcher

Sure, see my answer here: https://stackoverflow.com/a/70775576/4350421

On Tue, Feb 1, 2022 at 4:49 PM james-em @.***> wrote:

https://developer.android.com/training/articles/security-config#CertificatePinning

I would be interested in seeing your solution if you are willing to share :)

— Reply to this email directly, view it on GitHub https://github.com/MaxToyberman/react-native-ssl-pinning/issues/140#issuecomment-1026991383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGP3WJG7ANV5U54NNZNPZCDUY76HLANCNFSM5JK3HX6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

olarcher avatar Feb 01 '22 16:02 olarcher

@SrBrahma What did you do to get cert pinning to work in a webview? You mentioned something about a

keithdmoore94 avatar Jan 11 '23 17:01 keithdmoore94

@SrBrahma Could you please share information about what you finally did, or summarize you findings? I like to know if this library is compatible with managed expo builds, otherwise for my app I need to ask users to install certs manually. Your input would be valuable to me.

hasil-cstack avatar Aug 07 '23 11:08 hasil-cstack

@SrBrahma Could you please share information about what you finally did, or summarize you findings?

I honestly don't remember :-{

ftzi avatar Aug 08 '23 08:08 ftzi