1

I am currently implementing SSL Certificate Pinning for my React Native app.

I found a great answer explaining in detail the steps to archive this for both IOS and Android

But unfortunately the Android solution will only work as long as the requests are made with the Fetch API and I am trying to find a solution that also includes the XMLHttpRequest API

Andres C. Viesca
  • 332
  • 5
  • 19
  • Check this developer guide. Maybe it would help. https://developer.android.com/training/articles/security-config.html – VKostenc Jul 05 '17 at 13:01

2 Answers2

0

You can use this lib https://github.com/nlt2390/react-native-pinning-ssl

It verifies SSL connection using SHA1 keys.

leLabrador
  • 129
  • 2
  • 4
0

SSL pinning is not a good practice at the app level because every certificate has its validity for a period of time. So the best way to pin certificate at server side. I have integrated the same in the case of Swedish bankid SSL integration in my react-native App.

Meraj Khan
  • 39
  • 1
  • 7
  • fetch and axios will not work with ssl pining.You can follow this link. https://blog.jscrambler.com/ssl-pinning/ – Meraj Khan Jun 09 '21 at 06:52