Skip to content

zxyang/cordova-plugin-clientcertificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Client Certificate Plugin

This plugin uses iOS implmentation and API from mwaylabs/cordova-plugin-client-certificate

This plugin handles client certificate request from both iOS and Android WebView.

#Use Steps Clone the plugin

$ git clone https://github.com/zxyang/cordova-plugin-clientcertificate.git

Create a new Cordova Project

$ cordova create hello com.example.helloapp Hello

Install the plugin

$ cd hello
$ cordova plugin add ../cordova-plugin-clientcertificate

Copy a client certificate (PKCS12 format) to your www/ folder.

Add the following code inside onDeviceReady

    var success = function(message) {
        alert(message);
    }

    var failure = function(error) {
        alert("Error:" + error);
    }

    clientCertificate.register("cert.p12", "password", success, failure);

Install iOS and Android platform

cordova platform add ios
cordova platform add android

Run the code

cordova run android
cordova run ios

About

Cordova Client Certificate for both iOS and Android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published