Created
March 27, 2017 13:30
-
-
Save kraigu/7a696e657a1b626eba06fe22eaa1c093 to your computer and use it in GitHub Desktop.
Add some Globalsign IntranetSSL certificates to a MacOS keychain as trusted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl 'http://secure.globalsign.com/cacert/gsintranetsslsha256g3.crt' -o gsintranetsslsha256g3.crt | |
curl 'http://secure.globalsign.com/cacert/gsnonpublicroot2.crt' -o gsnonpublicroot2.crt | |
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./gsintranetsslsha256g3.crt" | |
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./gsnonpublicroot2.crt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment