Install the Keyfactor Remote CA Gateway Connector on Linux

To begin the Keyfactor Remote CAClosed A certificate authority (CA) is an entity that issues digital certificates. Within Keyfactor Command, a CA may be a Microsoft CA or a Keyfactor gateway to a cloud-based or remote CA. Gateway ConnectorClosed The Keyfactor Gateway Connector is installed in the customer forest to provide a connection between the on-premise CA and the Azure-hosted, Keyfactor managed Hosted Configuration Portal to provide support for synchronization, enrollment and management of certificates through the Azure-hosted instance of Keyfactor Command for the on-premise CA. It is supported on both Windows and Linux. installation on Linux, place the installation files in a temporary working directory on the Linux server and:

  1. On the Linux machine on which you wish to install the gateway connector, in a command shell change to the temporary directory where you placed the installation files.
  2. Use the chmod command to make the install.sh script file executable. The file ships in a non-executable state to avoid accidental execution. For example:

    sudo chmod +x install.sh
  3. In the command shell, run the install.sh script as root using the following syntax to begin the installation:

    The output from the command should look similar to the following, given the example commands shown.

    vi my_secret_file
    
    sudo ./install.sh --url https://kyf101.keyfactorpki.com/RemoteCAManagement --scope api://a12b345c-1234-8qqe-7521-1d91e647f7bg/.default --auth-url https://login.microsoftonline.com/mycred.onmicrosoft.com/oauth2/v2.0/token --client-id 1a234567-8b90-123c-d456-7e89f0123ghi --name appsrvr162.keyexample.com --client-secret $(cat my_secret_file) --force Gateway connector installation directory does not exist and will be created. Gateway connector log directory does not exist and will be created. Creating user keyfactor-gatewayconnector Creating install directory... Creating gateway connector log location... Installing Keyfactor Gateway Connector... Saving app settings Saving secret app settings Setting file permissions Creating service unit file... Created symlink /etc/systemd/system/multi-user.target.wants/keyfactor-gateway-connector-default.service → /etc/systemd/system/keyfactor-gateway-connector-default.service. Starting Gateway Connector...
  4. Review the output from the installation to confirm that no errors have occurred.

The script creates a directory, /opt/keyfactor-gateway-connector by default, and places the gateway connector files in this directory. Log files are found in /opt/keyfactor-gateway-connector/logs by default, though this is configurable (see Configure Logging).

The gateway connector service, by default named keyfactor-gateway-connector-default.service, should be automatically started at the conclusion of the install and configured to restart on reboot.

Note:  Once the installation of the gateway connector is complete, you need to use the Keyfactor Remote CA Configuration Portal to approve the gateway connector (see Gateway Connectors) and configure CAs (see Certificate Authorities). You can then add these CAs in Keyfactor Command as per the the Keyfactor Command Reference Guide instructions.