Created
April 11, 2018 16:20
-
-
Save ouyi/da0e7dcc320ec2a819286cbd3aa40b0e to your computer and use it in GitHub Desktop.
Commands for working with Java keystore
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
$ sudo keytool -storepass changeit -import -file /tmp/root.crt -noprompt -alias my-trusted-ca -keystore /Library/Java//JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/security/cacerts | |
Password: | |
Certificate was added to keystore | |
// changeit is the Java default keystore password | |
$ keytool -storepass changeit -list -keystore /Library/Java//JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/security/cacerts | grep my-trusted-ca | |
my-trusted-ca, Apr 11, 2018, trustedCertEntry, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment