cordova-plugin-certinfo
Version:
This plugin allows allows you to fetch the SSL Certificate of the server you're connecting to. This can be useful for prevention of Man In The Middle attacks.
52 lines (42 loc) • 1.57 kB
text/xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-certinfo"
version="0.1.0">
<name>Cordova SSL Certificate Info</name>
<description>
This plugin allows allows you to fetch the SSL Certificate of the server you're connecting to.
This can be useful for prevention of Man In The Middle attacks.
</description>
<keywords>Certificate, SSL, TLS, Pinning, Man in the Middle, MitM</keywords>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<js-module src="www/cert-info.js" name="CertInfo">
<clobbers target="window.plugins.CertInfo"/>
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CertInfo">
<param name="ios-package" value="CertInfo"/>
</feature>
</config-file>
<header-file src="src/ios/CertInfo.h"/>
<source-file src="src/ios/CertInfo.m"/>
<framework src="Security.framework"/>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CertInfo">
<param name="android-package" value="org.apache.cordova.certinfo.CertInfo"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET"/>
</config-file>
<source-file src="src/android/CertInfo.java" target-dir="src/org/apache/cordova/certinfo"/>
</platform>
</plugin>