I had the same problem. Maven copied the binary incorrectly.
I had to add the following to my maven-resources plugin:
<nonFilteredFileExtensions> <nonFilteredFileExtension>jks</nonFilteredFileExtension> </nonFilteredFileExtensions>
You can verify this by running the command in the target directory:
keytool -list -keystore ~/<your_project_target_directory>/security/samlKeystore.jks
When my maven copied the file incorrectly, I got:
keytool error: java.io.IOException: Invalid keystore format
As soon as I added nonFilteredFileExtension, I was immediately prompted to enter a password.
source share