aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)
BSD 2-Clause "Simplified" License
307 stars 97 forks source link

getting java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. #107

Open akshgods opened 6 years ago

akshgods commented 6 years ago

react native version 0.55 , android i tried to connect xmpp server i'm getting this issue:

react-native-xmpp: Disconnected, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. E:\react\octocat\screens\HomeScreen.js:30 DISCONNECTED! E:\react\octocat\node_modules\react-native-xmpp\index.js:20 react-native-xmpp: Error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. E:\react\octocat\screens\HomeScreen.js:26 ERROR:javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found

andrzejbe commented 6 years ago

@akshgods I've fixed this in my pull request for multi chat rooms handling - if you want to give it a try, you could use my forked version instead as explained here: https://github.com/aksonov/react-native-xmpp/issues/82

shubham1164 commented 6 years ago

Hi, @andrzejbe do you have working code of this library for IOS. I have tried all the manual/auto linking steps but failed to use this library and end up with errors in the Xcode during building. Please help me to get the ready to use code for IOS.

andrzejbe commented 6 years ago

Hi @shubham1164 - please see: #82