Advertisement
julong

CAcert's root certificate

Jun 17th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # Download the certificates
  2. curl -k -o "cacert-root.crt" "https://www.cacert.org/certs/root.crt"
  3. curl -k -o "cacert-class3.crt" "https://www.cacert.org/certs/class3.crt"
  4. #
  5. # CAUTION: Verify the certificate fingerprints before proceeding!
  6. #
  7. # Import the certificates into the desired keychain
  8. sudo certtool i "cacert-root.crt" k=/System/Library/Keychains/X509Anchors
  9. sudo certtool i "cacert-class3.crt" k=/System/Library/Keychains/X509Anchors
  10. # Clean up after ourselves
  11. rm "cacert-root.crt"
  12. rm "cacert-class3.crt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement