Configuring Sensors to Use the Progress Command when Starting on Java
If you want to use the progress command to check the progress of your Fortify Static Code Analyzer scans, the following sensor configuration is required:
-
Create a JMX access file, and add the following text to it:
<user_role> readonlywhere
<user_role>is text that represents something like a username. -
Create a JMX password file, and add the following text to it:
<user_role> <password> readonlywhere
<user_role>is the value you specified in the JMX access file. -
Run one of the following commands:
- On Windows systems, run
cacls jmxremote.password /P <username>:R -
On Linux systems, run
chmod 600 jmxremote.password
- On Windows systems, run
-
Open the
worker.propertiesfile in a text editor, and then add the following properties to it:sca_jmx_port=<port>sca_jmx_access_file=<path_to_access_file>sca_jmx_password_file=<path_to_password_file>sca_jmx_password=<password>sca_jmx_user=<user_role>sca_jmx_auth=true - Save and close the
worker.propertiesfile.
After you complete this configuration, ScanCentral SAST clients start on the specified port using JMX password authentication
Identity verification, typically with passwords. Authentication precedes authorization.. Make sure that the port is not already bound.
Important! If you use sca_jmx_auth, you can start only one sensor. Any attempt to open a new Fortify Static Code Analyzer instance results in a bind port error. To have multiple sensors on a machine, you must have several ScanCentral SAST instances, each with its own worker.properties file.