Skip to content

Instantly share code, notes, and snippets.

@SamvitJ SamvitJ/install-cert.sh
Last active Apr 29, 2016

Embed
What would you like to do?
Scripts for importing/installing self-signed certificate on OS X
# Cert signed by a root CA
scp twenty-client@10.8.220.169:~/scripted/root-CA/{server.crt,rootCA.pem} .
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./rootCA.pem"
sudo security add-trusted-cert -r trustRoot -k "/Library/Keychains/System.keychain" "./server.crt"
# Self-signed cert
scp twenty-client@10.8.220.169:~/scripted/server-only/server.crt .
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./server.crt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.