Originally published on cert-depot.com . Free, open-source self-signed certificate generator — no signup, keys never stored.
How to Trust a Self-Signed Certificate on macOS
Add your certificate to the macOS System keychain so Safari, Chrome, curl, and most other tools trust it.
macOS uses a unified keychain system that's shared across most applications — Safari, Chrome, curl, git, and many others. Adding your self-signed certificate once usually makes it trusted everywhere (Firefox is an exception; see our Firefox guide ).
GUI: Keychain Access
Open Keychain Access (Spotlight: Cmd+Space, type "Keychain").
From the menu: File › Import Items .
Select your .pem or .crt file.
When asked which keychain, choose System (requires admin password).…