This is a short post primarily for myself not to forget how to do it.
First of all you need to install mkcert
from Homebrew:
brew install mkcert
Then you need to create new local CA (Certificate Authority) and create certificates for localhost
:
mkcert -install
mkcert localhost
After that we need somehow to proxy all requests from https to http using the certificates. Install npm package for that:
npm install -g local-ssl-proxy
And start your local development:
local-ssl-proxy --source 3010 --target 3000 --cert localhost.pem --key localhost-key.pem
Voila, your https://localhost:3010
is ready for new challenges!