key-cert
v1.0.1
Published
Zero-config generator of self-signed private key and certificate.
Downloads
31
Maintainers
Readme
key-cert
Zero-config generator of self-signed private key and certificate.
Install
npm i key-cert
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