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

Package Sidebar

Install

npm i key-cert

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.65 kB

Total Files

8

Last publish

Collaborators

  • astur