Package Exports
- make-cert
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (make-cert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
make-cert
Quickly generate a self-signed cert to start an HTTPS server
Usage
Install make-cert by running:
yarn add make-cert
To generate a key.pem
with the private key and cert.pem
with the
certificate, both in PEM format, run:
yarn make-cert localhost
To use this in your own JavaScript code:
import makeCert from 'make-cert'
const {key, cert} = makeCert('localhost')
console.log(key)
console.log(cert)