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}`)
})
})