I'm using a native android plugin my team made for communication with a server, and as it uses HTTPS I use a certificate with it. Everything's fine with that, the problem is that, in Unity, when I try to use WWW with anything HTTPS, I get this error
V/com.facebook.unity.FB: sending to Unity OnLoginComplete({"error":"Caught exception: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.","callback_id":"5","key_hash":"XXXXXXXX"})
I get this error in particular when trying to use the Facebook SDK to post a picture to the user's timeline. Looking at the source code, it uses Unity's WWW for the POST. If in Unity I never call my native plugin's methods, then everything works nicely. Is there any way to get around that? Somehow install another certificate? Use some different header? Any help would be great, thanks.