mkcert – local certs

mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration. Perfect for local test systems and local internal servers only!

https://github.com/FiloSottile/mkcert

Installation:
https://github.com/FiloSottile/mkcert#installation

First Create CA:
mkcert -install

Create cert for example:
mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1

Bookmark the permalink.