Hi, I’m trying to do a post to an https endpoint and I get the error
“ls connection could not be established: javax.net.ssl.sslhandshakeexception: java.security.cert.certpathvalidatorexception: trust anchor for certification path not found.”
I searched on google and I found this working solution
https://github.com/ashenwgt/ionic-capacitor-ssl-pinning
My question is:
the example use
“@ionic-native/http”: “^5.9.0”,
“cordova-plugin-advanced-http”: “^2.1.1”,
and in the code use a
this.http.setSSLCertMode(‘pinned’)
In my project I use
@ionic-native/http": “^5.31.1”,
“cordova-plugin-advanced-http”: “^3.1.0”,
and there is no setSSLCertMode.
Is this method deplrecated?
Is there any alternative to do a post using a certificate?
Thanks