loopback-ssl
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "loopback-ssl", | ||
"version": "0.0.8", | ||
"description": "Node module to enable SSL or Mutual SSL in any loopback application", | ||
"version": "0.0.9", | ||
"description": "Node module to enable HTTPS/SSL in a loopback application with simple configurations. The module in addition enables trusted peer authentication.", | ||
"main": "index.js", | ||
@@ -17,3 +17,6 @@ "scripts": { | ||
"mutual authentication", | ||
"two way ssl" | ||
"two way ssl", | ||
"trusted peer", | ||
"certificate", | ||
"https" | ||
], | ||
@@ -33,3 +36,3 @@ "author": "Siddhartha Lahiri", | ||
"gulp": "3.9.1", | ||
"gulp-codacy": "^1.0.0", | ||
"gulp-codacy": "1.0.0", | ||
"gulp-eslint": "3.0.1", | ||
@@ -36,0 +39,0 @@ "gulp-exit": "0.0.2", |
# loopback-ssl | ||
Component for [loopback] to enable SSL or Mutual SSL Authentication | ||
Node module to enable HTTPS/SSL in a [loopback] application with simple configurations. The module also enables trusted peer authentication. | ||
[](https://img.shields.io/travis/yantrashala/loopback-ssl/master.svg) [](https://nodei.co/npm/loopback-ssl/) [](https://nodei.co/npm/loopback-ssl/) [](https://github.com/yantrashala/loopback-ssl) [](https://www.npmjs.com/package/loopback-ssl) [](https://www.npmjs.com/package/loopback-ssl) [](https://www.codacy.com/app/siddhartha-lahiri/loopback-ssl?utm_source=github.com&utm_medium=referral&utm_content=yantrashala/loopback-ssl&utm_campaign=Badge_Grade) [](https://www.codacy.com/app/siddhartha-lahiri/loopback-ssl?utm_source=github.com&utm_medium=referral&utm_content=yantrashala/loopback-ssl&utm_campaign=Badge_Coverage) | ||
[](https://img.shields.io/travis/yantrashala/loopback-ssl/master.svg) [](https://nodei.co/npm/loopback-ssl/) [](https://nodei.co/npm/loopback-ssl/) [](https://github.com/yantrashala/loopback-ssl) [](https://www.npmjs.com/package/loopback-ssl) [](https://www.npmjs.com/package/loopback-ssl) [](https://www.codacy.com/app/siddhartha-lahiri/loopback-ssl?utm_source=github.com&utm_medium=referral&utm_content=yantrashala/loopback-ssl&utm_campaign=Badge_Grade) [](https://www.codacy.com/app/siddhartha-lahiri/loopback-ssl?utm_source=github.com&utm_medium=referral&utm_content=yantrashala/loopback-ssl&utm_campaign=Badge_Coverage) [](https://gitter.im/yantrashala/loopback-ssl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
@@ -81,9 +81,12 @@ | ||
## Disable HTTPS | ||
The configuration entry `"httpMode": false` will disable https. In this mode the `"certConfig": {..}` configuration is not used and can be omitted. | ||
## Option 1: Enable HTTP (default loopback configuration) | ||
The configuration entry `"httpMode": true` will enable http (disable https). In this mode the `"certConfig": {..}` configuration is not required and can be omitted. | ||
```js | ||
"httpMode": true | ||
``` | ||
## Enable SSL | ||
Configuration sample to enable SSL | ||
## Option 2: Enable HTTPS | ||
The configuration entry `"httpMode": false` will enable https. | ||
```js | ||
"httpMode": true, | ||
"httpMode": false, | ||
"certConfig": { | ||
@@ -102,5 +105,5 @@ "path": "/certificate/path/", | ||
## Enable Mutual SSL | ||
## Option 3: Enable Mutual SSL authentication | ||
```js | ||
"httpMode": true, | ||
"httpMode": flase, | ||
"certConfig": { | ||
@@ -122,2 +125,10 @@ "path": "/certificate/path/", | ||
# Contributing | ||
- Fork it ( https://github.com/yantrashala/loopback-ssl/fork ) | ||
- Create your feature branch (git checkout -b new-feature) | ||
- Commit your changes (git commit -am 'Add some feature') | ||
- Push to the branch (git push origin new-feature) | ||
- Create new Pull Request | ||
# License | ||
@@ -129,4 +140,2 @@ | ||
- [Loopback][loopback] | ||
- [Trusted Peer - Example][trusted_peer] | ||
- [Self Signed Certificates - Example][self_signed] | ||
@@ -133,0 +142,0 @@ |
@@ -7,3 +7,5 @@ { | ||
"cert": "local.crt.pem", | ||
"ca": [], | ||
"ca": [ | ||
"local.crt.pem" | ||
], | ||
"requestCert": true, | ||
@@ -10,0 +12,0 @@ "rejectUnauthorized": false |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26892
585
143
1