keytool error: Invalid keystore format when trying to manage tomcat.keystore

Document ID : KB000100662
Last Modified Date : 08/06/2018
Show Technical Document Details
I receive the keytool error: Invalid keystore format when I try to use the my JDK keytool to manage tomcat.keystore created by the proxyui . Does the proxyui use a different tool to create the tomcat.keystore?
I am using the following command:
"keytool -list -v -keystore /app/CA/secure-proxy/SSL/keys/tomcat.keystore -storepass MyPassword"

keytool error: Invalid keystore format Invalid keystore format at at$JKS.engineLoad( at at$DualFormatJKS.engineLoad( at at at at

I found out that the invalid keystore format error means what it says. It appears that the keytool defaults to jks format if the -storetype command is not specified. I discovered that the GUI creates the tomcat.keystore file in JCEKS format.
The proper syntax to use the keytool to list the contents of the tomcat.keystore in JCEKS format with a password of MyPassword is
keytool -list -storetype jceks -keystore tomcat.keystore -storepass MyPassword -v