Skip to content

Instantly share code, notes, and snippets.

@danieldai
Created October 19, 2018 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldai/42c758f639155f7281821b66839bd1c0 to your computer and use it in GitHub Desktop.
Save danieldai/42c758f639155f7281821b66839bd1c0 to your computer and use it in GitHub Desktop.
The single command to import cert into java system truststore for all linux like systems
sudo keytool -import -alias cacerts -keystore $(readlink -f /usr/bin/java | sed "s:bin/java::")lib/security/cacerts -file ca.crt
@danieldai
Copy link
Author

java system truststore is located in different directories on different system and java version , but this command work for all situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment