Skip to content

Instantly share code, notes, and snippets.

@waldekmastykarz
Created December 16, 2023 14:35
Show Gist options
  • Save waldekmastykarz/56aed149cabc4efd20fb5b45d9c6278d to your computer and use it in GitHub Desktop.
Save waldekmastykarz/56aed149cabc4efd20fb5b45d9c6278d to your computer and use it in GitHub Desktop.
Trust a certificate on macOS
# export cert from keychain to PEM
security find-certificate -c "Titanium Root Certificate Authority" -a -p > proxy-cert.pem
# add trusted cert to keychain
security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db proxy-cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment