JSPM

self-signed-cert

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8102
  • Score
    100M100P100Q147731F
  • License ISC

Quickly get self signed ssl certificates for development

Package Exports

  • self-signed-cert

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (self-signed-cert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

self-signed-cert

A utility module for getting a self-signed ssl certificate for development of secure servers

API

const https = require('https')
const { key, cert } = require('self-signed-cert');

let serverOptions = {
    key,
    cert
}

const server = https.createServer(serverOptions,(req,res) => {
    // Your awesome secure server logic 
});

server.listen(8080,() => {
    console.log('Your awesome server is listening on localhost:8080')
});