<commit_before># 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) [![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


## Install

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

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

```
cordova plugin add cordova-plugin-certificates@0.4.0
```

## 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:<commit_msg>Updated documentation<commit_after># 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) [![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


## Documentation

### Install

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

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

```
cordova plugin add cordova-plugin-certificates@0.4.0
```

### 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:
{'fraction_non_alphanumeric': 0.11934900542495479, 'fraction_numerical': 0.027124773960216998, 'mean_word_length': 6.6048109965635735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4765998', 'n_tokens_mistral': 775, 'n_tokens_neox': 698, 'n_words': 133}