Socket
Book a DemoInstallSign in
Socket

certman

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

certman

certman

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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.

Keywords

cert

FAQs

Package last updated on 27 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts