Sun Java System Message Queue 4.3 Administration Guide

ProcedureTo Specify the Location and Password of the Certificate Key Store

  1. Copy the .war file to a temporary directory:

    The location of the HTTPS tunnel servlet’s .war file varies, depending on your platform (see Appendix A, Platform-Specific Locations of Message Queue Data):

      Solaris: cp /usr/share/lib/imq/imqhttps.war /tmp

      Linux: cp /opt/sun/mq/share/lib/imqhttps.war /tmp

      Windows: cp IMQ_HOME\lib\imqhttps.war \tmp

  2. Make the temporary directory your current directory.

       cd  /tmp
  3. Extract the contents of the .war file.

       jar xvf  imqhttps.war
  4. List the .war file’s deployment descriptor.

    Enter the command

       ls  -l WEB-INF/web.xml

    to confirm that the deployment descriptor file (WEB-INF/web.xml) was successfully extracted.

  5. Edit the deployment descriptor to specify the key store location and password.

    Edit the web.xml file to provide appropriate values for the keystoreLocation and keystorePassword elements (as well as servletPort and servletHost, if necessary): for example,


    Note –

    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.)

  6. Reassemble the contents of the .war file.

       jar uvf  imqhttps.war  WEB-INF/web.xml