The ChangeFactory takes a java properties file (lines with name=value settings) and edits the server.xml file accordingly. The settings accepted are listed in TrustManagerOptions.
In addition to the settings in TrustManagerOptions the ChangeFactory also requires the setting sslPort which is the port number to use for the secure communications. This port number is used to check if there is already something defined at that port in the server.xml. If there is something, that is overwritten with the new settings, if there isn't anything, new settings are created.
To run the ChangeFactory you need to put the security and the xerces libraries (jars) into the classpath. The ChangeFactory takes 3 arguments, the first argument is the original server.xml file to be edited, the second is the file containing the settings and the final argument is the file to output the edited server.xml. Example:
java org.edg.security.trustmanager.tomcat.ChangeFactory ./conf/server.xml ~/authentication.properties tmp.xml
# define the secure port number
sslPort=8443
# Enable use of Globus grid proxy certificate. Specify the file containing
# the grid proxy.
gridProxyFile=/etc/grid-security/server.proxy
# The certificates for the trusted CAs
sslCAFiles=/etc/grid-security/certificates/*.0
# The CRL files
crlFiles=/etc/grid-security/certificates/*.r0
# File to configure log4j
log4jConfFile=/opt/edg/etc/log4j.conf