Running SignClient on Windows with Cygwin and not specifying the keystore password the application is supposed to prompt for the password, but instead it fails:
Caused by: java.io.IOException: org.signserver.cli.spi.CommandFailureException: Failed to read password
... 15 more
Caused by: org.signserver.cli.spi.CommandFailureException: Failed to read password
... 16 more
The issue seems to be that Cygwin does not offer a real console and thus the password prompt (which does not echo the characters typed) are not available.
See for instance:
- Don't use Cygwin (or instead invoke cmd.exe)
- Specify password as a command line flag
- We could consider falling back to reading the password from stdin either with a warning printed that the password will not be hidden or with an additional -passwordfromstdin flag that would have to be provided.