Skip to content

Instantly share code, notes, and snippets.

@gecugamo
Created June 15, 2023 17:13
Show Gist options
  • Save gecugamo/65ac2ec6e0018cee4f6e79fbbef50cb4 to your computer and use it in GitHub Desktop.
Save gecugamo/65ac2ec6e0018cee4f6e79fbbef50cb4 to your computer and use it in GitHub Desktop.
Running Angular Application Locally with SSL

Install mkcert

  • Run brew update
  • Run brew install mkcert
  • Run mkcert -install

Create a cert for localhost

  • Run mkcert localhost

Run ng serve with ssl

  • Run npm run start -- --ssl --ssl-cert ./localhost.pem --ssl-key ./localhost-key.pem or ng serve --ssl --ssl-cert ./localhost.pem --ssl-key ./localhost-key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment