Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loopback-ssl

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-ssl

Node module to enable SSL or Mutual SSL in any loopback application

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

loopback-ssl

Component for loopback to enable SSL or Mutual SSL Authentication

NPM

NPM

Build status codecov

Features

  • Enable SSL in Loopback application
  • Enable mutual SSL authentication in Loopback

Usage

Install loopback:

slc loopback <app-name>

cd <app-name>

Install loopback-ssl:

npm install loopback-ssl --save

Setup Configuration:

Add the following lines of configuration in 'config.json' in location /server/config.json

  "httpMode": false,
  "certConfig": {
    "path": "/certificate/path/",
    "key": "local.pem",
    "cert": "local.crt.pem",
    "ca": [],
    "requestCert": false,
    "rejectUnauthorized": false
  }

Setup server.js

Edit the server.js located at /server/server.js

Add the following line at the top of the code.

var loopbackSSL = require('loopback-ssl');

Replace the all the content within the code block starting with

app.start = function() {

with following code

return loopbackSSL.startServer(app);

License

MIT.

See Also

Keywords

FAQs

Package last updated on 02 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc