Trusting the CA in a browser on macOS

Add the private CA certificate to the macOS login keychain as a trusted root so that browsers trust certificates that the CA signs.

  1. Copy the CA certificate to the workstation, for example ~/Downloads/<ca-file>.pem.
  2. Add the certificate to the login keychain as a trusted root.
    security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db ~/Downloads/<ca-file>.pem
  3. Check the trust.
    curl -sS -o /dev/null -w '%{http_code}\n' https://app.<ccf-base-host>/

An HTTP status code means that the CA is trusted. A TLS error means that it is not.