badcert-register

1.0.0 • Public • Published

badcert-register

nodejs package with access to valid https key/cert pair

You can also download PEM cert directly from https://badcert.wrtc.dev

const registerLocalIps = require("badcert-register").registerLocalIps;
const express = require("express");
const https = require("https");

const app = express();

registerLocalIps().then((keyAndCert)=>{
  https.createServer(keyAndCert, app).listen(keyAndCert.port, () => {
    console.log(`server is runing at https://${keyAndCert.domain}:${keyAndCert.port}`)
  })
})

Readme

Keywords

none

Package Sidebar

Install

npm i badcert-register

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

27.2 kB

Total Files

22

Last publish

Collaborators

  • scaret