简体   繁体   中英

react native ssl pinning

We are building a react native 0.61.4 app and we want to use the library react-native-ssl-pinning. There is a problem with ios certificate and fetch returns error "cancelled" when running on ios.

We have followed the steps from https://www.npmjs.com/package/react-native-ssl-pinning . I am not sure about the step two at Usage ios: (skip this if you are using certificate pinning) no extra step needed for public key pinning, AFNetworking will extract the public key from the certificate.

Any thoughts about what might have been wrong?

You can try to use react-native-cert-pinner package for implementing public key pinning in react native. Very easy to install and no need to override fetch method from javascript side. It directly interact with Network layer in iOS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM