ssl.publickey.checker
Version:
This plugin can be used to add an extra layer of security by preventing 'Man in the Middle' attacks.
38 lines (35 loc) • 1.8 kB
text/xml
<plugin id="ssl.publickey.checker" version="7.0.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>SSLPublicKeyChecker</name>
<description>
This plugin allows you to check the SSL Certificate of the server you're connecting to.
This can be useful for prevention of Man In The Middle attacks.
</description>
<keywords>Ecosystem:cordova, Cordova-android, Cordova-ios, Certificate, SSL, Pinning, Key pinning, Public key pinning, Man in the middle</keywords>
<js-module name="SSLPublicKeyChecker" src="www/SSLPublicKeyChecker.js">
<clobbers target="window.plugins.SSLPublicKeyChecker" />
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="SSLPublicKeyChecker">
<param name="android-package" value="ssl.publickey.checker.SSLPublicKeyChecker" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<source-file src="src/android/SSLPublicKeyChecker.java" target-dir="src/ssl/publickey/checker/SSLPublicKeyChecker" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="SSLPublicKeyChecker">
<param name="ios-package" value="SSLPublicKeyChecker" />
</feature>
</config-file>
<source-file src="src/ios/SSLPublicKeyChecker.m" />
<source-file src="src/ios/SSLPublicKeyChecker.h" />
<framework src="Security.framework" />
</platform>
</plugin>