Appendix - Set up the Keyfactor AnyCAGateway to Use a Proxy

Typically with services that use a proxy, there is a specific proxy configuration you give it, but the AnyCAGateway DCOM doesn't have such a configuration in the configuration scripts. However, there is a .NET app.config setting that can be applied to the gateway process to tell .NET to use a proxy, as follows:

  1. Set up the proxy by adding the code below inside the <configuration> section of CAProxyServer.exe.config to tell .NET to apply the proxy settings to the gateway. The proxyaddress needs to be set to your proxy server.
    <system.net>
      <defaultProxy>
        <proxy proxyaddress="http://192.168.1.1:3128" bypassonlocal="true" />
      </defaultProxy>
    </system.net>
  2. After making the changes, restart the AnyCAGateway DCOM and Keyfactor Command.
    Tip:  Since .NET applications read their config files at start-up, if the AnyCAGateway DCOM configuration tool is already running when the changes are made, it needs to be restarted and rerun.