Provision Key and Certificate
- Linux hosts should be in managed state.
- Ensure Vault integration is already done if optional vault integration is required. The Provisioning to CyberArk requires CyberArk credentials to be configured with Auth Type: Basic in the CyberArk API Settings. It will not work if the API settings are configured with Auth Type: Certificate.
To provision a key:
- Go to Menu > SSH > INVENTORY > Key Inventory > User Key Inventory.
- From User Key Inventory, select a key you want to provision.
-
Click the Actions dropdown menu, and then select the
Provision Key & Certificate option.
Provision Key & Certificate page is displayed with fields displayed for Key & Certificate Configuration setup.
-
In the Key & Certificate Configuration setup
page:
The Key Summary section contains fields that are pre-populated with the values which are non-editable:
- Key Type
- Associated Users
- Fingerprint
- Encryption
- Key Group
The Certificate Provisioning section, contains a toggle button for Provision Certificate. Enabling the toggle button displays the SSH certificate signing parameter fields:Note: The Certificate Provisioning section is disabled by default, to enable this section:- Go to
Menu > SSH >
ADMINISTRATION > Advanced
Settings. - Under Provisioning tab, enable the toggle Enable User CA Trust and Certificate.
- In the pop-up displayed, select the checkbox to confirm the setting and click Proceed.
- Click Update. The provisioning settings are saved successfully.
Table 1. Certficate Configuration - Field and Description Table Field Description Cert Key Id (Mandatory) The Key ID / comment embedded in the signed certificate. Principals (Mandatory) The OS usernames or roles the certificate grants access for. Example: user or domain\user The system auto-populates this field based on the Associated Users. You can modify the values or add one or more new values alongside the pre-populated entries.
Extensions (Mandatory) The SSH certificate extensions to include. It must be a subset of the group policy allowed list. Permitted values are: permit-agent-forwardingpermit-port-forwardingpermit-ptypermit-user-rcpermit-X11-forwarding
Valid From , Valid To (Mandatory) The certificate validity start and end values. Valid from cannot be less than current date time and Valid to cannot exceed the Max Validity defined in the Key policy of the specific key. Source IP Restricts where the SSH certificate can be used from. Specify one or more IP addresses or CIDR ranges (comma-separated). If omitted: No IP restriction is applied; the certificate can be used from any source.
Force Command Restricts what command(s) the user can execute when authenticating with the certificate. Specify one or more commands (comma-separated). If omitted: No command restriction is applied; the user can execute any permitted command based on their account privileges.
-
Click Next.
The Destination Configuration setup page is displayed.
-
In the Destination Configuration page, enter the fields as
follows:
Table 2. Destination Configuration - Field and Description Table Fields Description Infra Access Group Select a user group from the dropdown. This field binds access at the group level and restricts users to only the hosts associated with the selected group. Existing Destination Configuration Displayed destination configurations that are already available for the selected key. All fields in this section are read-only and cannot be modified.
Client Configuration Displays the existing client configuration entries with the following details:
Hostname Specify the client machine’s hostname or IP address. Username Enter the username used to access the client machine. Key Path Provide the file path where the user’s private key is stored on the client machine. Tip: If only the key path is present but the cert path is not available for an existing entry, it indicates the private key exists on the host but the certificate has not been provisioned. In such cases, a toggle is available in the Cert Path column to enable certificate provisioning for that entry. Enabling the toggle adds the entry to the New Destination Configurations section with the cert path auto-populated.New Destination Configurations This section allows you to add new destination configurations for the selected key. Client Configuration Click Add Host to enter details below, and then click the Add button on the pop-up to list them in the new destination configuration details.
Hostname Specify the client machine's hostname or IP address. Username Enter the username used to access the client machine. Key Path Provide the file path where the user’s private key is stored on the client machine. Actions Use the edit icon to modify the Username and Key Path for an existing entry in the client configuration. Note: The Key Path is auto-generated based on the username provided and does not need to be entered manually. Additionally, the Cert Path is automatically derived from the Key Path by appending-cert.pubto the key path value. The Cert Path field is non-editable.Important: You can add multiple configurations for the same host. However, the combination of Hostname, Username, and Key Path must be unique. Duplicate combinations are not allowed.Server Configuration Click Add Host to enter the host details, and then click the Add button on the pop-up to list them in the server configuration details.
Hostname Specify the target server’s hostname or IP address. Username Enter the username used to access the server. Authorized Keys Specify the list or file of principals that the server trusts for certificate-based authentication. Actions Use the edit icon to modify the Username and Principals for an existing entry in the server configuration. - Click Next.
-
(Optional) Configure Vault Configuration as
follows:
- Only needed if you are using CyberArk or another PAM for secure credential storage.
- If vault configuration is not required, click the Skip button.
- Enter/select Vault details.
Table 3. Vault Configuration - Field and Description Table Field Description Vault Vendor Select the supported PAM solution. For example: CyberArk. Vault Config Choose a pre-configured vault integration. Safe Name Enter CyberArk Safe where credentials are stored. User Name Username for the target system. PAM Account Name CyberArk-managed account used to connect to the target host. Server Address Enter the IP address or FQDN of the vault or target system. - Click Next.
-
Under Review & Confirm, review all the configuration
details.
You can modify the Valid From and Valid To values in this stage. The values configured in the Key & Certificate Configuration step are pre-populated and editable. If you need to adjust the certificate validity period, update the values as required.
Click Confirm to provision the key and certificate.
