- Set MX_HTTP_DEFAULT_CLIENT_AUTHENTICATION to true.
- Use MxValidateCredentials.class to validate the format of the credentials file. The syntax is as follows:
java -classpath %CLASSPATH% MxValidateCredentials credentialfile
- Name the credential file mxNetworkCredentials.xml, and place it under %MATRIXINSTALL%/etc/. The format is explained below. The property MATRIX_INSTALL must be declared as the path of the matrix server directory (for example, C:/enoviav6r2011/server/).
- To encrypt the credentials file, set MX_ENCRYPT_NETWORK_CREDENTIALS to true.
- Use MxEncryptCredentials.class to create a key and encrypt the credentials file. The syntax is as follows:
java -classpath %CLASSPATH% MxEncryptCredentials credentialfile
The original credentials file can now be discarded.
- Optional: Use MxEncryptCredentials.class to reverse the credentials for verification. The syntax is as follows:
java -classpath %CLASSPATH% MxEncryptCredentials -reverse
- For encrypted credentials, it is technically OK to encrypt the credentials file once and copy it to all MCS/FCS servers, assuming that the credentials file content is the same.
- MX_HTTP_CLIENT_AUTHENTICATION_CLASS has the first precedence.
- MX_ENCRYPT_NETWORK_CREDENTIALS defaults to false.
- You must restart the server if the credentials file is modified.
- The MxValidateCredentials.class and MxEncryptCredentials.class can simply be launched inside MQL.
Example Credentials File
The credentials file is an XML-based file. The following is an example of a credentials file:
<auth>
<credential>
<username>creator</username>
<password></password>
<host>1.1.1</host>
<port>*</port>
<protocol>http</protocol>
<scheme>BASIC</scheme>
<prompt>80</prompt>
<site>*</site>
<url>*</url>
<type>proxy</type>
</credential>
</auth>
The XML file should have a single root node called <auth>
, and contain zero or more <credential>
nodes.
The <credential>
element contains exactly ten child nodes:
Note:
All nodes should be declared. Use * for nodes that are not of interest. The values of these nodes should not contain non-ASCII characters.