self-signed-cert
v1.0.1
Published
Quickly get self signed ssl certificates for development
Downloads
14,767
Maintainers
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')
});