Hi all,
I’m working on an Ionic + Capacitor (v5) app targeting Android 13, and I’m encountering this error when making HTTPS requests:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
The request works fine in Chrome and on iOS, so it’s clearly not a server issue. I’ve already checked:
- The certificate chain is valid and uses Let’s Encrypt
- The Android network_security_config is present and points to the right domains
- App has internet permissions
Is this a Capacitor-specific limitation, or do I need to configure cleartext vs HTTPS rules in a new way for Android 12+ or targetSdkVersion 33?
Any help would be appreciated — especially if someone’s resolved this without needing a custom WebView or native code changes.
Thanks!
jhonnmick