🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

cordova-plugin-client-certificate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-client-certificate

Client certificate authentication for your Cordova app.

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
4
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

Cordova Client Certificate Plugin

Plugin that uses a client certificate for authentication.

Using

Clone the plugin

$ git clone https://github.com/mwaylabs/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.register("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

Keywords

ecosystem:cordova

FAQs

Package last updated on 04 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts