Skip to content

soltius/cordova-plugin-client-certificate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Client Certificate Plugin

Plugin that uses a client certificate for authentication.

Using

Clone the plugin

$ git clone [email protected]:soltius/cordova-plugin-client-certificate.git

Create a new Cordova Project

$ cordova create hello com.example.helloapp Hello

Install the plugin

$ cd hello
$ cordova plugin add ../cordova-plugin-client-certificate

Copy a client certificate to your www/ folder.

Edit www/js/index.js and add the following code inside onDeviceReady

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

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

    clientCertificate.registerAuthenticationCertificate("certfilePath/cert.p12", "s3cr37", success, failure);

Install iOS platform

cordova platform add ios

Run the code

cordova run 

More Info

For more information on setting up Cordova see the documentation

For more info on plugins see the Plugin Development Guide

About

Client certificate authentication plugin for Cordova

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 96.2%
  • Java 3.3%
  • JavaScript 0.5%