Trust local caddy certificates on macOS

Up to today, I’ve been bothered by having local https websites served by Caddy, whose certificates were not trusted by macOS. Today, I rectified it.

For macOS (and Safari) to trust what Caddy deploys locally, I had to:

A screenshot of a certificate open with Keychain Access

Then, all the local websites Caddy is serving will be trusted automatically.