datatheorem / TrustKit-Android

Easy SSL pinning validation and reporting for Android.
MIT License
584 stars 87 forks source link

enforcePinning flag not working when set to false #43

Closed tavo1985 closed 5 years ago

tavo1985 commented 5 years ago

I have implemented TrustKit in my react-native app. I'm using TrustKit 1.1.0 and OkHttp 3.6.0. When I set enforcePinning to false, TrustKit is still blocking the network connection when SSL Pinning validation fails. enforcePinning does not make any difference if set to true or false, TrustKit always blocks the network connection when SSL Pinning validation fails.

tavo1985 commented 5 years ago

Any update on this issue?

AbhishekCode commented 5 years ago

Facing same issue. Using react-native.

nabla-c0d3 commented 5 years ago

Hello, Thanks for the report. There is a unit test to validate that enforcePinning does work (https://github.com/datatheorem/TrustKit-Android/blob/master/trustkit/src/androidTest/java/com/datatheorem/android/trustkit/pinning/SSLSocketFactoryTest.java#L278) so I think the issue here has to do with react-native. However, TrustKit does not officially support react-native (we've never tested it) so I'll close this issue. Good luck!