Software developers developing web apps locally (Angular, Spring-Boot, NextJS, React, Docker, etc.) should be using HTTPS. Problem is, out-of-the-box they run on HTTP.
I run into this problem so often, I wrote a single script that guides me through the process and generates all the required files to enable SSL locally.
self-signed-cert-generator Repo: https://github.com/pjl-software/self-...
------------------------------------------------------------------------
Steps to run the web app locally:
1. Clone the self-signed-cert-generator: $ git clone https://github.com/pjl-software/self-... and change directories into self-signed-cert-generator: $ cd self-signed-cert-generator
2. Run the generate-a-self-signed-certificate script and follow the prompts: $ ./generate-a-self-signed-certificate
3. All generated files will be the in the new directory "generated-files"
------------------------------------------------------------------------
Or just copy the Gist locally and run: https://gist.github.com/pjlinn/394eb6...
For examples of using these files to enable SSL in Angular and/or Spring Boot check out this repo here: https://github.com/pjl-software/full-...
------------------------------------------------------------------------
Chapters:
0:00 - Localhost HTTP Blocked by Chrome
0:29 - Self-signed Certificate Generator Walkthrough
1:20 - Running localhost HTTPS successfully