An open API service indexing awesome lists of open source software.

https://github.com/hypery2k/cordova-certificate-plugin

cordova certificate helper util
https://github.com/hypery2k/cordova-certificate-plugin

Last synced: 6 months ago
JSON representation

cordova certificate helper util

Awesome Lists containing this project

README

        

# Certificate Plugin for Apache Cordova

[![Build Status](https://travis-ci.org/hypery2k/cordova-certificate-plugin.svg?branch=master)](https://travis-ci.org/hypery2k/cordova-certificate-plugin) [![npm version](https://badge.fury.io/js/cordova-plugin-certificates.svg)](http://badge.fury.io/js/cordova-plugin-certificates)[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=2596540)](https://www.bountysource.com/trackers/2596540-hypery2k-cordova-certificate-plugin?utm_source=2596540&utm_medium=shield&utm_campaign=TRACKER_BADGE)

> cordova Plugin to configure SSL Certificates, currently used to enable usage of untrusted aka self-signed SSL certifcates

[![NPM](https://nodei.co/npm/cordova-plugin-certificates.png)](https://nodei.co/npm/cordova-plugin-certificates/)

Feel free to **donate**

Click here to lend your support to: Owncloud Apps and make a donation at www.pledgie.com !


## Documentation

### Install

```
cordova plugin add cordova-plugin-certificates
```

> For Cordova-Android before 4.1.0 you need to install this version

```
cordova plugin add [email protected]
```

### Usage

Activate insecure certificates
```
cordova.plugins.certificates.trustUnsecureCerts(true)
```

Dectivate insecure certificates
```
cordova.plugins.certificates.trustUnsecureCerts(false)
```

## Development

### Running integration tests

execute the `runIntegrationTests.sh` script for a specific platform:

```
PLATFORM='android' ./runIntegrationTests.sh
```

```
PLATFORM='ios' ./runIntegrationTests.sh
```