wae-adhoc
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ADHOC HTTPS Certs Generator for Wae web framework.

Usage

const adhoc = require("wae-adhoc");
app.cert(adhoc.ADHOC());
// Or with some options
app.cert(adhoc.ADHOC({commonName: "localhost", organizationName: "SamHDev"}));

Supported Options

  • commonName {string}
  • countryName {string}
  • stateName {string}
  • localityName {string}
  • organizationName {string}
  • organizationUnit {string}
  • serialNumber {number}
  • validFrom {Date}
  • validTo {Date}
  • validLength {number}
  • bits {number}

Accessing The Certs

const adhoc = require("wae-adhoc");
let cert = adhoc.ADHOC();
console.log(cert.key.key.toString()); // Private Key
console.log(cert.cert.key.toString()); // Cert

Readme

Keywords

none

Package Sidebar

Install

npm i wae-adhoc

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

7.83 kB

Total Files

7

Last publish

Collaborators

  • samhdev