This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
Unable to connect to server from K2 mobile on Android device but it is working fine for an IOS device. The following error appears:
'java.security.cert.CertPathValidationException: Trust anchor for certification path not found.'
The error 'Trust anchor for certification path not found.' means that the HTTPS binding do not use certificates issued by trusted CA which is a requirement for Android/Windows Phone apps.
This is a common issue on Android, please refer to this article: https://developer.android.com/training/articles/security-ssl.html#CommonProblems
Verify your SSL Certificate installation by adding your K2 site here: https://www.digicert.com/help/. If any error appears on the result you will need to check CA with your infrastructure team.
Possible resolution options:
- Obtain trusted certificate from public CA
- Add self-signed certificate into Android device trusted root certification authorities
- Switch to HTTP instead of HTTPS.