"TLS connection could not be established: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found."

Hi guys, I’m trying to make a post request but I get a certificate error.

I’m using ionic5 with capacitor and the advanced http plugin and I was wondering if there was any way to solve this?

Could you guys help me out?

Thank you

I would strongly recommend using Angular’s HttpClient instead. Not only is it much less prone to troubles like this, code using it is much cleaner and easier to maintain.