Configuring CxConsole to Use a Proxy

If your network requires a proxy to connect to the CxSAST server, you have to configure CxConsole as follows:

  1. Open the following file for editing:
    ...\CxConsole\runCxConsole.cmd
  2. Locate the following line:
    java -jar CxConsolePlugin-CLI-9.00.2.jar %*
  3. Change that line to the following:
    java -Xmx1024m -Dhttp.proxyHost=<proxy server> -Dhttp.proxyPort=<port> -DsocksProxyHost=<proxy server> -jar CxConsolePlugin-CLI-9.00.2.jar %*
     <proxy server> - IP address or resolvable name of your network proxy server
     <port> - Port at which the proxy server is listening,
    for example java -Xmx1024m -Dhttp.proxyHost=10.31.0.128 -Dhttp.proxyPort=808 -DsocksProxyHost=10.31.0.128 -jar CxConsolePlugin-CLI-9.00.2.jar %*

We recommend that, rather than edit our script every time an update is required, setting the following in the global environment, or before calling the script:

  • Linux - export JAVA_TOOL_OPTIONS="-Dhttp.proxyHost=http-proxy -Dhttp.proxyPort=3128 -DproxySet=true"
  • Windows - set JAVA_TOOL_OPTIONS="-Dhttp.proxyHost=http-proxy -Dhttp.proxyPort=3128 -DproxySet=true"

For additional information on connecting via a proxy from a Java command, refer to Java Networking and Proxies at the Oracle website.