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 all dependencies
pnpm installnode index.jsand in another terminal:
curl https://localhost:3000 -kexpected output:
Hello from https server!