Skip to content
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

SSL Issue on Android: CertPathValidatorException: Trust anchor for certification path not found #2646

Open
vinod1988 opened this issue Dec 25, 2024 · 0 comments

Comments

@vinod1988
Copy link

Please fill out the following details:

  1. Version of Mobile SDK Used: 12.0.1
  2. Issue found in Native App or Hybrid App: React Native
  3. OS Version: 8,9,10,11,12,13,14
  4. Device: All devices
  5. Steps to reproduce: net.query()
  6. Actual behavior: The app should handle SSL connections without any issues after restart.
  7. Expected Behavior: After restarting, the app fails to perform network operations due to the following error:
    java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
  8. Error Log:
    LOG Failed to query: {"error": "java.security.cert.CertPathValidatorException: Trust anchor for certification path not found."}

Description:
My application was working perfectly, but it has started encountering SSL issues on Android devices. The app functions correctly the first time, but upon restarting, it fails. The issue is specific to Android, as it works flawlessly on iOS devices.

Environment Details:
Salesforce Mobile SDK (Android): v12.0.1
React: 18.2.0
React Native: 0.73.6

Error:

LOG SalesforceNetReactBridge.sendRequest failed: "{"error":"java.security.cert.CertPathValidatorException: Trust anchor for
certification path not found."}"

LOG Failed to query: {"error": "java.security.cert.CertPathValidatorException: Trust anchor for certification path not found."}

Expected Behavior:
The app should handle SSL connections without any issues after restart.

Actual Behavior:
After restarting, the app fails to perform network operations due to the following error:
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant