Skip to content

Instantly share code, notes, and snippets.

@otaviomedeiros
Created April 23, 2014 19:21
Show Gist options
  • Save otaviomedeiros/11228918 to your computer and use it in GitHub Desktop.
Save otaviomedeiros/11228918 to your computer and use it in GitHub Desktop.
java import cef certificates
# import certificates
sudo keytool -import -alias cef.addtrustexternalcaroot -keystore "/usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts" -file "/home/otavio/certificados/AddTrustExternalCARoot" -storepass changeit
sudo keytool -import -alias cef.comodorsacertificationauthority -keystore "/usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts" -file "/home/otavio/certificados/COMODORSACertificationAuthority" -storepass changeit
sudo keytool -import -alias cef.comodorsaorganization -keystore "/usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts" -file "/home/otavio/certificados/COMODORSAOrganizationValidationSecureServerCA" -storepass changeit
# list imported certificates
sudo keytool -list -keystore "/usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts" -storepass changeit | grep cef
# remove certificates
sudo keytool -delete -alias cef.addtrustexternalcaroot -keystore "/usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment