How to implement Swedish bankid SSL pinning in react native

1k Views Asked by At

I am trying to implement SSL pinning for Swedish bankid in my react-native app but didn't find any working solution. I have tried the following link: 1.https://github.com/localz/react-native-pinch but no luck 2.https://www.npmjs.com/package/react-native-ssl-pinning also no luck :(

1

There are 1 best solutions below

6
On

Possible HowTo's

I am trying to implement SSL pinning for Swedish bankid in my react-native app but didn't find any working solution.

You can take a look to this series of blog posts about implementing certificate pinning with React Native for Android and iOS:

Enhance React Native’s networking API protection on Android and iOS without touching your Javascript code or manually editing the native code projects.

The articles are based on this Github repo, that contains the code for Android and iOS implementations:

react-native-cert-pinner

This package manages TLS certificate pinning in react-native for Android and iOS.

Going the Extra Mile

It seems that you are concerned about mobile app security, does I would recommend you to take a look into:

OWASP Mobile Security Project - Top 10 risks

The OWASP Mobile Security Project is a centralized resource intended to give developers and security teams the resources they need to build and maintain secure mobile applications. Through the project, our goal is to classify mobile security risks and provide developmental controls to reduce their impact or likelihood of exploitation.