npm i http-server -g
- global install the static file serveropenssl genrsa -des3 -out key.pem 1024
openssl req -new -key key.pem -out csr.pem
cp key.pem key.pem.org
openssl rsa -in key.pem.org -out key.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
http-server . --S
in the root directory
Found via:
I followed the steps but it is showing invalid certificate warning.