Neighbourhood Party Manager
Miss any of our Open RFC calls?Watch the recordings here! »

key-cert

1.0.1 • Public • Published

key-cert

Zero-config generator of self-signed private key and certificate.

Build Status NPM version

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

Install

npm i key-cert

DownloadsWeekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

3.65 kB

Total Files

8

Last publish

Collaborators

  • avatar