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.