@runforest/devcert

Enables local HTTPS.

Usage no npm install needed!

<script type="module">
  import runforestDevcert from 'https://cdn.skypack.dev/@runforest/devcert';
</script>

README

Config:

{
  domain: "domain name, eg. example.test for which to generate the certificate and private key"
  keyDestination: "the path where to save the private key",
  certDestination: "the path where to save the certificate",
  caDestination: "optional path where to save the root certificate, useful if you need to import the root certificate somewhere (eg. PHP)",
}