Copy the .war file to a temporary directory.
cp /usr/share/lib/imq/imqhttps.war /tmp (Solaris)
cp /opt/sun/mq/share/lib/imqhttps.war /tmp (Linux)
cp IMQ_HOME/lib/imqhttps.war /tmp (Windows)
Make the temporary directory your current directory.
$ cd /tmp
Extract the contents of the .war file.
$ jar xvf imqhttps.war
List the .war file’s deployment descriptor.
$ ls -l WEB-INF/web.xml
Edit the web.xml file to provide correct values for the keystoreLocation and keystorePassword arguments (as well as servletPort and servletHost arguments, if necessary).
Reassemble the contents of the .war file.
$ jar uvf imqhttps.war WEB-INF/web.xml
You are now ready to use the modified imqhttps.war file to deploy the HTTPS tunnel servlet. (If you are concerned about exposure of the key store password, you can use file system permissions to restrict access to the imqhttps.war file.)