certman

0.0.1 • Public • Published

certman

Install

~$ npm i certman --save

Example

const { 
  createRootCA, 
  createCertificate,
} = require('certman');
const https = require('https');

const ca = createRootCA();
const cert = createCertificate({ ca, hostname: 'test.local' });

https.createServer({
  key: cert.key,
  cert: cert.cert,
}, (req, res) => {
    res.end('hello world');
}).listen(6443);

License

This project is under MIT license.

Package Sidebar

Install

npm i certman

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

5.86 kB

Total Files

6

Last publish

Collaborators

  • song940