Posted on Sunday, 31st May 2009 by Balazs
To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type
$ export TOMCAT=”/usr/local/tomcat”
$ java -cp “$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar” \
org.apache.catalina.realm.RealmBase -a md5 [secret]
by replacing “[secret]” with the password.
Some systems have a working digest.sh script that does the same thing.
Share and Enjoy: