cordova-plugin-advanced-http
cordova-plugin-advanced-http copied to clipboard
feature request for setSSLCertMode new mode
Hello,
Some complex apps use both external and internal API's and partial pinning would be a great feature in this case. Use case: I want to pin certs of internal API's certs but do not want to pin for external as I can't ensure they will give any notice before changing certs.
possible example of implementation:
setSSLCertMode('pinned-conditional', function() { console.log('success!'); }, function() { console.log('error :('); });
and when calling some new feature method:
cordova.plugin.http.setSSLWhitlistedDomains([ 'externalApi_1.com', 'externalApi_2.com' ], function() { console.log('success!'); }, function() { console.log('error :('); });