Skip to content

Instantly share code, notes, and snippets.

@hitaboy
Created February 10, 2021 17:18
Show Gist options
  • Save hitaboy/26424b167aeb01064161fd89dab50167 to your computer and use it in GitHub Desktop.
Save hitaboy/26424b167aeb01064161fd89dab50167 to your computer and use it in GitHub Desktop.
I installed mkcert:
brew install mkcert
brew install nss # if you use Firefox
mkcert -install
Then, in your project directory:
mkcert 0.0.0.0 localhost 127.0.0.1 ::1
Finally, I renamed generated files:
0.0.0.0+3-key.pem -> key.pem
0.0.0.0+3.pem -> cert.pem
And ran the following command:
http-server -S -C cert.pem -o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment