Created
October 19, 2018 08:14
-
-
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
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 keytool -import -alias cacerts -keystore $(readlink -f /usr/bin/java | sed "s:bin/java::")lib/security/cacerts -file ca.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java system truststore is located in different directories on different system and java version , but this command work for all situations.