Ionic-native/http setSSLCertMode

Hi, I’m trying to do a post to an https endpoint and I get the error

“ls connection could not be established: trust anchor for certification path not found.”

I searched on google and I found this working solution

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

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?


Please read this tutorial for SSL Pinning in Ionic

1 Like