Demo Angular project showing how to use ssl for localhost
Angular Workspace Instructions
https://digitaldrummerj.me/angular-local-ssl/
NOTE -> Requirement: you must have OpenSSL installed. I do this through https://chocolatey.org/
- To generate the key and crt files, open a terminal in certs and run. Once they are generated, I commit these files to the repo
openssl req -new -x509 -newkey 1rsa:2048 -sha256 -nodes -keyout localhost.key -days 3560 -out localhost.crt -config certificate.config.txt
- change the server to include the ssl flag
ng serve app-example-one --port 4321 -o --ssl true --ssl-key .\\certs\\localhost.key --ssl-cert .\\certs\\localhost.crt





