Created
May 5, 2015 15:12
-
-
Save xuan9/3c4ea894742f1e2ced05 to your computer and use it in GitHub Desktop.
import new CA cert to Java CA on Mac
This file contains hidden or 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
| 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