iOS: not working with pinned cert mode in cordova-plugin-advanced-http

536 views Asked by At

I am using Cordova-plugin-advanced-http v2.0.1 plugin for "pinned" certificate mode for enabling SSL pinning. The same code is working in android but not working in iOS for Cordova application.

I have used one certificate which is not valid so it is giving an error in Android but not in iOS.

mounted() {
  cordova.plugin.http.setSSLCertMode('pinned', function() {
    console.log('success....!');
  }, function() {
    console.log('error....');
  });

}

0

There are 0 answers