I have a Tomcat application that requires multiple passwords on startup.
My current configuration uses a Java Properties object to load in the passwords from a password.conf file.
There's now a requirement that no passwords are allowed in 'the clear' on the system. I had suggested encrypting the password file, but this isn't an option.
It would be ideal if Tomcat's start-up script could simply read user keyed passwords from the command line and feed it to my application.
Since Tomcat is starting up as a Daemon, I don't think I can utilize any Java command line I/O like Scanner to read in a password.
Does anyone have any clever solutions?
Thanks PR