react native https request with .p12 or .pfx certificate best way

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 12:08:48

问题


I develop a mobile application with react native. When I try HTTPS request my service needs to client-side certificate authentication. I searched a lot of resources and I found these:

  • https://github.com/localz/react-native-pinch

  • https://github.com/approov/react-native-cert-pinner

I should be able to do this by writing a library by using client certificate authentication in native code and then using NativeModules to call it from javascript but it's really difficult.

Or maybe i need to add a middleware service.

Do you have any alternative solution to this problem? or what's the best practice?

来源:https://stackoverflow.com/questions/55595544/react-native-https-request-with-p12-or-pfx-certificate-best-way

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!