Are you tired of not being able to quickly and easily run https locally?
This script solves the problem!
- This script is written in
sh
, but tested onzsh
on Ubuntu 22.04. - openssl is required.
- node is required.
Install with
npm ci
npm start -- website/root/dir
Stop the https-server running with CTRL-C
.
- It creates a folder
tmp
in the current directory. - It createds certificates in
tmp
usingopenssl
. - It runs the http-server module in https mode using the certificates.
- When you stop the server, the script automatically deletes the
tmp
folder.
I like this repo because it solved a niggling problem I had.
Do you like it? Is it a good idea? Do you have a suggestion to improve it?
Star the repo.
Raise issues. I'll get back to them when I can.
Thanks,
DoctorU.