Skip to content

Instantly share code, notes, and snippets.

@xuan9
Created May 5, 2015 15:12
Show Gist options
  • Select an option

  • Save xuan9/3c4ea894742f1e2ced05 to your computer and use it in GitHub Desktop.

Select an option

Save xuan9/3c4ea894742f1e2ced05 to your computer and use it in GitHub Desktop.
import new CA cert to Java CA on Mac
sudo /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool -importcert -file ~/Downloads/a.cert -keystore /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts
sudo /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/bin/keytool -importcert -file ~/Downloads/a.cert -keystore /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/lib/security/cacerts
sudo /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/keytool -importcert -file ~/Downloads/a.cert -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/security/cacerts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment