Skip to content

Instantly share code, notes, and snippets.

@hoangong
Last active January 5, 2019 15:53
Show Gist options
  • Save hoangong/a2252e4e419f18195a1346d7bbc78ec3 to your computer and use it in GitHub Desktop.
Save hoangong/a2252e4e419f18195a1346d7bbc78ec3 to your computer and use it in GitHub Desktop.
JVM cert command #java #cert #jvm
list CAs
keytool -list -keystore $(/usr/libexec/java_home)/jre/lib/security/cacerts
Add new CA
sudo keytool -keystore $(/usr/libexec/java_home)/jre/lib/security/cacerts -importcert -alias new_cert -file cer_file.cer/pem
default pass: changeit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment