-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation fails to enforce pinning (React Native) #91
Comments
Hello, Unfortunately React Native is not supported. The call to fetch() does not go through TrustKit's validation code which is why the app is behaving as if the certificate is still valid. Your app would have to instead use the HttpsURLConnection or the OkHttpClient objects to implement pinning validation. |
@gabimoncha |
I solved this problem after I took more than 4 days with me 3-create xml folder inside res folder 5-pass this code inside network_security_config.xml hope be helpful |
you are saved my day, thx |
Describe the bug
A clear and concise description of what the bug is.
I've implemented the library as is described in the documentation, without any success in enforcing the certificate pinning.
To Reproduce
Steps to reproduce the behavior.
res/xml/network_security_config.xml
MainApplication.java
useValidCertificate.js
which is called once the Navigation screens have mountedExpected behavior
A clear and concise description of what you expected to happen.
The app should navigate to
InvalidCertificate
screen as it does when using TrustKit library for iOS.Instead the app is behaving as if the certificate is still valid.
TrustKit configuration
Copy and paste your XML Network Security Policy.
App details:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: