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

@dazld/snakeoil-certs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazld/snakeoil-certs

HTTPS self signed certs

  • 1.0.3
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Development HTTPS certificates

  • DO NOT USE OUTSIDE OF LOCALHOST *

Certificates created by pem module and saved into a module for import by other scripts (eg. livereload) and consistency.

Exports

csr - cert signing request

clientKey - certificate key

certificate - the https cert itself

serviceKey - service key

Usage


const https = require('https');
const snakeoil = require('@dazld/snakeoil-certs');
const someExpressApp = require('your-express-app-or-whatever');


const server = https.createServer({
    key: snakeoil.serviceKey,
    cert: keys.certificate
},someExpressApp).listen(3030);

// in gulp livereload

const livereload = require('gulp-livereload');

livereload.listen({
    key: snakeoil.serviceKey,
    cert: keys.certificate
});

// etc - now both the livereload and main server are using same keys

Keywords

FAQs

Package last updated on 09 May 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