Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 2.88 KB

README.md

File metadata and controls

65 lines (44 loc) · 2.88 KB

Communicating over SSL in React Native

!!! This reposirtry is experimental and provides cases only for Android. Make sure to check this package that covers ssl pinning in Android and iOS. https://github.com/MaxToyberman/react-native-ssl-pinning

This project aims to show different cases of communication over SSL between your React Native application and your api.

Check branches for cases:

  • Master branch without any SSL configuration. If you try to run application and press the button , you'll have this error : java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
  • Disable SSL verification :danger
  • Add trusted anchor for certificate path
  • Even more security with SSL pinning
  • SSL pinning using TrustKit
  • SSL pinning combining TrustKit and custom implementation

*Notice: I did not implement iOS versions. You can find how to do it here and here.

You can read more about SSL pinning (and security) in React Native with theses links:

Reference and misc :

Installation

yarn

Launch the server

yarn server

Launch application

iOS

yarn ios

Android

yarn android

Testing

You can view console in Chrome or in React Native Debugger

Launch application and press button to make api call.