mkcert

Create locally-trusted development certificates for HTTPS testing

brewmacoslinux
Try with needOr install directly
Source

About

Simple tool to make locally trusted development certificates

Commands

mkcert

Examples

Install mkcert's local CA in your system trust store$ mkcert -install
Create certificates for localhost and local domain names$ mkcert localhost 127.0.0.1 ::1
Generate certificates for a specific domain$ mkcert example.local www.example.local