Menu

1 / 2

How to Trust a Self-Signed Certificate on macOS

DEV Community·Dima Stopel·6 months ago
#g23ZfE9R
#ssl#tls#security#tutorial#trust
Reading 0:00
15s threshold

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).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.