Do you known how properly work a fetch call with a self-signed certification in react-native app ?
TypeError: Request failed
[Error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.]
This code is place on index.js
file app.
const Fetch = RNFetchBlob.polyfill.Fetch
window.fetch = new Fetch({
trusty: true
}).build()
I check a different post like this !
I use react-native-ssl-pinning, it's work fine with Certificate pinning.
And the real problem was coming from a bad install of server certificate.