This is just a few entries for some java related incantations I use once or twice a year and then promptly forget.
Keytool
keytool -list -v -keystore keystoreName.jks | grep 'superCert-'
Code language: Bash (bash)
List the aliases in a java keystore that start with a specific string.
keytool -list -v -keystore keystoreName.jks -alias "certAlias (mustUseQuotesIfAliasHasParens)"
Code language: Bash (bash)
Print out info about a cert in a Java keystore.
keytool -delete -v -keystore ./path/to/file.jks -alias "alias name"
Code language: Bash (bash)
Delete a cert from the keystore whose alias is “alias name”