Trust the kevin CA#

The kevin proxy serves HTTPS with certificates signed by a local CA. Until your machine trusts that CA, clients reject the certificates, and curl needs --cacert ~/.kevin/root.crt.

Install the root CA#

kevin ca install

Do this once per machine. It does not need a project, and it covers every kevin project.

kevin adds the root CA to:

  • The macOS keychain, or the Linux CA directory, for your user.
  • The certificate database of each Firefox profile.

macOS asks you to confirm the change.

To install for all users of the machine, add --system. This needs root: kevin prints the command to run with sudo.

Trust the CA in Firefox#

Firefox has its own certificate database. kevin needs certutil to change it, and skips Firefox if certutil is not installed. Install it, then run kevin ca install again:

brew install nss                  # macOS
sudo apt install libnss3-tools    # Debian and Ubuntu
sudo dnf install nss-tools        # Fedora

On macOS, Homebrew puts certutil in $(brew --prefix nss)/bin. Add that directory to your PATH.

Check the result#

kevin doctor

Each trust store shows ok when it trusts the kevin CA.

Remove the root CA#

kevin ca uninstall