cordova-plugin-advanced-http icon indicating copy to clipboard operation
cordova-plugin-advanced-http copied to clipboard

feature request for setSSLCertMode new mode

Open Edmu opened this issue 6 years ago • 0 comments

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 :('); });

Edmu avatar Jan 24 '19 13:01 Edmu