mkcert is useful for generating local SSL's for development that are trusted.
Generate the CA and add to trusted store:
mkcert -install
To generate certificates:
mkcert "certificate-name" "127.0.0.1" "another-hostname"
If specifying multiple hostnames they will be added as SAN's.
To uninstall:
mkcert -uninstall