Skip to content

Instantly share code, notes, and snippets.

@stepankuzmin
Created December 14, 2021 12:59
Show Gist options
  • Save stepankuzmin/563e56d0e90f07d7fba5302ed1ece67a to your computer and use it in GitHub Desktop.
Save stepankuzmin/563e56d0e90f07d7fba5302ed1ece67a to your computer and use it in GitHub Desktop.
macOS serve folder with HTTPS using mkcert and npx serve
brew install mkcert
mkcert localhost
npx serve -l 1234 --ssl-cert ./localhost.pem --ssl-key ./localhost-key.pem <path>
open https://localhost:1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment