diff --git a/Cheat Sheets/DevOps Services/Java.md b/Cheat Sheets/DevOps Services/Java.md index f5cdf28dd..a7187e04d 100644 --- a/Cheat Sheets/DevOps Services/Java.md +++ b/Cheat Sheets/DevOps Services/Java.md @@ -25,7 +25,10 @@ When using Oracle Java ## keytool Usage -Note `changeme` is the default password of unprotected/fresh Java keystores. Set a new password with `-storepassword` +Note `changeit` is the default password of unprotected OS keystores. Set a new password with `-storepassword` + + # Find OS Default Keystore Location + readlink -e $(dirname $(readlink -e $(which keytool)))/../lib/security/cacerts keytool -list # Show content of default keystore keytool -list -keystore # Show content of file @@ -77,10 +80,6 @@ urandom as RNG by adding the following JVM option pgrep -fl java | grep -q "+UnlockCommercialFeatures" -## Default Keystore Location - - readlink -e $(dirname $(readlink -e $(which keytool)))/../lib/security/cacerts - ## JMX Remote JConsole via SSH tunnel Enable JMX and JConsole: