0.1.1 • Published 7 years ago
magic-self-signed-ssl v0.1.1
🔒 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}`)
})
0.1.1
7 years ago