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