mkcert is a simple tool for making locally-trusted development certificates. It is available for a number of platforms. Youu can find additional install instructions and project details at https://github.com/FiloSottile/mkcert
I'm currently working from my Mac, so homebrew it is: