react-native-fetch-blob icon indicating copy to clipboard operation
react-native-fetch-blob copied to clipboard

[Android4.4]Self-Signed SSL Server Config don't work

Open Germinate opened this issue 8 years ago • 6 comments
trafficstars

My React Native version is 0.41.2, and the react-native-fetch-blob version is 0.10.8. I set the config

RNFetchBlob.config({
  trusty : true
})

according to the doc, but when I send the request, I got the error

Error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

How to solve it????

By the way, the code sample of Self-Signed SSL Server chapter is wrong,

RNFetchBlob.config({
  trusty : true
})
.then('GET', 'https://mysite.com') -> fetch instead of then here
.then((resp) => {
  // ...
})

Germinate avatar Sep 07 '17 07:09 Germinate

I'm having the same issue with react-native 0.44.2 and react-native-fetch-blob 0.10.5 in a 4.4.4 tablet. I didn't have that problem with an android 5.0 or 6.0 ...

zenithpolar avatar Dec 19 '17 12:12 zenithpolar

Same issue. Android 4.1.2 "react-native": "0.54.0", "react-native-fetch-blob": "0.10.8",

cvvspb avatar Mar 13 '18 10:03 cvvspb

+1

zhangxiann avatar May 23 '18 01:05 zhangxiann

+1 How to solve?

luolin2611 avatar May 30 '18 10:05 luolin2611

I am getting SSL handshake aborted: ssl=0xb9a723a0: error with trusty set to true on android kitkat. (4.4). any solution for this?

soumyamishra89 avatar Dec 03 '18 17:12 soumyamishra89

in my case, this error occurs.

RNFetchBlob error when sending request : SSL handshake timed out

  • node_modules\expo\build\environment\logging.js:25:23 in warn
  • node_modules\react-native\Libraries\YellowBox\YellowBox.js:67:8 in warn
  • ... 7 more stack frames from framework internals

request timed out.

  • node_modules\react-native-fetch-blob\index.js:301:25 in
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:397:4 in __invokeCallback
  • ... 4 more stack frames from framework internals

CreadDiscans avatar Mar 07 '19 15:03 CreadDiscans