key-cert
1.0.1 • Public • Published key-cert
Zero-config generator of self-signed private key and certificate.
Install
Usage
Returns promise of a {key, cert}
object ready to use in development and testing. That's all.
const keyCert = require('key-cert');
(async () => {
require('https').createServer(await keyCert(), (request, response) => {
response.end('ok');
}).listen(443);
})()
License
MIT
Package Sidebar
Install
Weekly Downloads