0.1.1 • Published 7 years ago

magic-self-signed-ssl v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

🔒 Magic Self Signed SSL

const magicSSL = require('magic-self-signed-ssl')
const express = require('express')
const server = express()

const SSL_PORT = 3443

...

const secureServer = await magicSSL(server)

...

secureServer.listen(SSL_PORT, error => {
  if (error) throw error
  console.log(`> 🔒 SSL Ready on https://localhost:${SSL_PORT}`)
})