First open CommandPrompt and set path by running 'path' command
e.g. path=C:\Program Files (x86)\ACL Software\JDK\jdk1.7.0_79\bin
List command example:
C:\ACL\App\keystores>keytool -list -v -keystore MyKeyStore2 >> test2.txt
Enter Keystore password
Generate Self-signg Cert/Keystore example
keytool -genkey -keyalg RSA -alias selfsigned -keystore MyKeyStore -storepass Password00 -validity 360 -keysize 2048
After generating a Selfsigned Keystore/cert add trusted cert - Import a signed primary certificate to an existing Java keystore
keytool -import -trustcacerts -alias caroot -file addtrustexternalcaroot.crt -keystore MyKeyStore
https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html