I have generated self signed certificate for my server. Then added it to Android with Settings -> Security -> Install.
When I'm trying to connect to my server from the application I'm getting error:
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
As I understand after I've added certificate to list of trusted ones it should work fine. Am I missing something? The idea is to add certificate through Android system without modifying application code.
Btw I'm using OkHttpClient
for network connection. Maybe I should enable something for https
connection?