Simple HTTPS server using tinyhttp and https module.
Generate the certificate key:
openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' \
-keyout localhost-privkey.pem -out localhost-cert.pemInstall dependencies:
tinyhttp new httpsnode index.jsand in another terminal:
curl https://localhost:3000 -k