3

I wish I could protect my application from MITM attacks over HTTPS, I know I can use HPKP to protect the application.

Is it possible to do this from react-native?

Rodrigo Moreno
  • 629
  • 9
  • 24

1 Answers1

4

There is a package that seems to implement certificate pinning: https://github.com/localz/react-native-pinch. I haven't used it too extensively so I cannot comment on how convenient it is.

There's also a long write-up at How can I implement SSL Certificate Pinning while using React Native that walks you through implementing this yourself, based in part on https://github.com/Kudo/react-native-ssl-pinning-proposal.

Community
  • 1
  • 1
YSK
  • 1,572
  • 10
  • 19