# Key Manager Plus Agent Key Manager Plus enables users to discover and manage SSL certificates deployed across their network using lightweight Key Manager Plus agents. These agents are the components of the Key Manager Plus server and can be deployed on remote systems to perform certificate-related operations seamlessly. This guide provides step-by-step instructions for installing and managing the Key Manager Plus agent (hereafter referred to as the agent) on Windows-based remote systems, especially those not directly connected to the Key Manager Plus server. **Note:** Before proceeding, ensure you have administrative privileges on the target systems to perform the installation and make necessary configurations. At the end of this document, you will have learned the following topics in detail: 1. [Installing the Agent](https://www.manageengine.com/key-manager/help/kmp-agent.html#install) 2. [Managing the Agent](https://www.manageengine.com/key-manager/help/kmp-agent.html#manage) 3. [Discovering SSL Certificates using Agent](https://www.manageengine.com/key-manager/help/kmp-agent.html#discover) 4. [Signing Certificates using Agent](https://www.manageengine.com/key-manager/help/kmp-agent.html#signing) 5. [Deploying Certificates using Agent](https://www.manageengine.com/key-manager/help/kmp-agent.html#deploy) 6. [Deploying Certificates in Multiple Servers using Agent](https://www.manageengine.com/key-manager/help/kmp-agent.html#multipleserver) ## 1. Installing the Agent **Important Notes:** 1. **From build 6680 onwards**, it is no longer necessary to install agents on the CA server to manage SSL certificates. Instead, agents can be installed on any server, provided it has network connectivity to the required CA server. 2. **From build 7030 onwards**, agents can be installed using a standalone executable through a guided installation wizard. Additionally, administrators can deploy agents to multiple Windows endpoints simultaneously using Windows Group Policy Objects (GPO). For detailed installation instructions, refer to this document. 3. **From build 7150 onwards**, you can configure a validity period for the installation key, allowing the downloaded Key Manager Plus agent to be installed on multiple machines using the same installation key. Additionally, administrators can install agents in bulk on Windows servers in non-interactive mode using the following command: **_\ -installkey \_** To install the agent, follow these steps: 1. Navigate to **Discovery >> Agents >> Download Windows Agent**. You can also download the agent from **SSL >> Windows Agent >> Download Windows Agent**. 2. From the pop-up that opens, download the agent file (Executable or Zip file). The downloaded package already contains the necessary configurations needed to perform the required operations. Just ensure the account in the server in which the agent is installed has sufficient privileges to perform certificate discovery. Also, copy and save the **Install Key** in a secure location. ![agent-based-discovery-1](https://www.manageengine.com/key-manager/help/images/agent-based-discovery-1.png) **Note:** The Install Key is automatically revoked after a single use. To install the agent on another server, you should generate a new Install Key from the Key Manager Plus server and use it during the next installation. 3. Enable the **Agent installation key validity** checkbox to specify the validity period (in hours) for the installation key. This allows you to install the downloaded Key Manager Plus agent on multiple machines using the same installation key until the validity period expires. ![agent-based-discovery-1a](https://cdn.manageengine.com/sites/meweb/images/key-manager/help/agent-based-discovery-1a.png) 4. For builds prior to 7030, follow these steps to install the agent as a Windows service: 1. Copy the ZIP file downloaded from the Key Manager Plus server to the target remote server where the agent is to be installed. 2. Unzip the file and place the extracted contents in a secure, unshared directory to ensure safe handling of installation files. 3. Open Command Prompt with administrator privileges. Navigate to the agent installation directory and execute the following command: **AgentInstaller.exe install \** Replace \ with the actual Install Key that was securely stored earlier. 4. Execute the command `AgentInstaller.exe start` to start the agent as a Windows service. 5. Execute the command `AgentInstaller.exe stop` to stop the agent. 5. For builds after 7030, follow these steps to install the agent as a Windows service: 1. Launch the downloaded executable agent file with the administrator's permission. 2. In the installation wizard that opens, continue by specifying the agent installation directory and the copied agent **Install Key** to complete the installation. 3. Upon successful installation, any previously installed agent in the endpoint (KMPAgent) will be removed and the new agent will get started automatically. You can verify the new agent version in Key Manager Plus. After a successful installation, the deployed agent on the endpoint will appear under the **SSL >> Windows Agents** section in Key Manager Plus, displaying the relevant endpoint details. If the agent does not appear in the **Windows Agents** section after installation, follow the steps below to troubleshoot and reinstall: 1. Open Command Prompt with administrator privileges and navigate to the folder where the agent is installed. For example: **C:\Program Files\ManageEngine\KMPAgent** 2. Execute the command `Installer.exe setserverconfig`. 3. Execute the following command to configure the server IP details for the agent: `Installer.exe setserverconfig serverip 99.99.99.99` Replace `99.99.99.99` with the IP address of the server where the agent is installed. ## 2. Managing the Agents Key Manager Plus enables administrators to monitor and manage the agents deployed across various remote systems, providing detailed insights into agent activity and performance. To manage Key Manager Plus agents: ![windows-agent](https://www.manageengine.com/key-manager/help/images/windows-agent.png) 1. Navigate to **SSL >> Windows Agents**. 2. In the window that appears, you will see a list of all Key Manager Plus agents installed on remote machines. For each agent, the following details are displayed: - IP Address - User Name - Agent Version - Installation Time - Contact Interval - Last Contact - Last Operation Performed 3. To remove an agent from the list, select the desired agent and click **Delete** from the top menu. ## 3. Discovering SSL Certificates using Agents To discover SSL certificates via agents, navigate to **Discovery >> Agent** and select the desired agent. Alternatively, go to **SSL >> Windows Agent**, choose the agent, and click Discovery. In the pop-up window, choose one of the following discovery methods: 1. **DMZ**: Use this option to discover certificates from servers located in a demilitarized zone. 1. Select the discovery method: **Hostname / IP Address** or **IP Address Range**. 2. Enter the **Hostname/IP Address**, **Time out** value, and **Port**, then click **Discover**. 2. **Certificate Store**: For discovering certificates from the local certificate store. 1. Enter the **Store Name** and **Time out** value. 2. Click **Get Stores** to retrieve available store names, select the desired one from the drop-down, and click **Discover**. 3. **Microsoft Certificate Authority**: For discovering local CA-issued certificates. 1. Enter the **Server Name**, **Certificate Authority**, and select the required filters. 2. If using **Template Name / OID**, enter the template name or click **Get Templates** to retrieve a list of available templates (select up to five). 3. Enter the **Time out** value and click **Discover**. **Notes:** 1. The **Server Name** and **Certificate Authority** fields are applicable only for Microsoft CA from build 6680 onward. 2. From build 6680, the Key Manager Plus agent can be installed on any server that has access to the Microsoft CA server. 4. **Directory**: For discovering certificates from a specific file path. 1. Enter the **Path** and **Time out** value, then click **Discover**. 2. To import a selected set of certificates from the given path, click **Discover Certificate List**, select the desired certificates, and click **Discover**. ![kmp-agent-ssl](https://www.manageengine.com/key-manager/help/images/kmp-agent-ssl.png) Once discovered, the certificates are imported into the centralized Key Manager Plus certificate repository. You can view them under **SSL >> Windows Agents**. To see certificates associated with a specific agent, click the **Host Name** of that agent. ![windows-agent-cert1](https://www.manageengine.com/key-manager/help/images/windows-agent-cert1.png) ![windows-agent-cert2](https://www.manageengine.com/key-manager/help/images/windows-agent-cert2.png) ## 4. Signing Certificates using Agent 1. Navigate to **SSL >> Windows Agents**, select the agent and click **Sign**. 2. In the pop-up, provide the following: 1. **Server Name** and **Certificate Authority** (applicable only for Microsoft CA from build 6680 onward). 2. **Certificate Template**, or click **Get Templates** to fetch the available templates. 3. Agent **Timeout** (in seconds) - the time within which the agent must respond. If the agent does not respond within the set time, the operation will be audited as failed. 4. Select the required **CSR** from the dropdown. 3. Click **Sign**. The certificate will be successfully signed and available in the repository. ![kmp-agent-sign](https://www.manageengine.com/key-manager/help/images/kmp-agent-sign.png) ## 5. Deploying Certificates using Agent 1. Navigate to **SSL >> Windows Agent** and select the agent. ![kmp-agent-deploy-1](https://www.manageengine.com/key-manager/help/images/kmp-agent-deploy-1.png) 2. Click **Deploy** and choose the target server from the drop-down. 3. Based on the deployment target, follow the appropriate steps: 1. **Windows (using agent)**: Select the **Certificate Group**, enter the **Path**, select the relevant checkbox(es): **Certificate** and/or **JKS/PKCS**, and choose the appropriate **File Type** and/or **Keystore Type**, then click **Deploy**. 2. **MS Store (using agent)**: Select the **Certificate Group** and click **Deploy**. 3. **IIS (using agent)**: Select the **Certificate Group** and click **Deploy**. 4. **IIS Binding (using agent)**: Select the **Certificate Group**, enter the **Site Name** and click **Get Bindings**. 4. Click **Manage** to configure the certificate group, then click **Save** to apply the changes. Now, the certificate will now be deployed and viewable under the SSL tab. ## 6. Deploying Certificates in Multiple Servers using Agent 1. Go to **SSL >> Certificates** and click the **Multiple Servers** icon next to the required certificate. 2. A list of servers where the certificate is deployed will appear, displaying details such as **IP Address**, **Port**, **Certificate Validity**, **Host Name**, **Serial Number**, and **Sync Status**. 3. Ensure that the DNS Name matches the agent’s name and that the agent is running on the DNS server. 4. To modify server details: 1. Click the **credentials** icon next to the certificate. 2. Choose the **Server Type** (using agent) and select the required **Agent**. 3. Specify the **Path** and check the relevant options. 4. For **Certificate**, choose the **File Type** and enter the **Certificate File Name**. 5. For **JKS/PKCS**, select the **Keystore Type** and enter the **Store File Name**. 6. For **Microsoft Certificate Store**, select **Computer** and/or **User account**. 7. To enable private key export after deployment, select **Enable PrivateKey Export from MS Certificate Store after deployment**. 8. Click **Save** to apply the configurations. 5. To edit a deployed server: 1. Click the edit icon next to the certificate. 2. In the pop-up, edit the **DNS Name**, **IP Address**, and **Port**. 6. To enable auto-deployment after certificate renewal, select the desired certificate, click **Edit**, check **Deploy Certificate on Auto Renewal**, and click **Save**. **Note:** You will be able to deploy a certificate to all servers on auto-renewal only if the user credentials are available. 7. To check Sync Status using the agent, select the desired certificate, click **Edit**, check **Sync Check With Agent**, and click **Save**. 8. To add a deployed server manually: 1. Click **Add**, enter the **DNS Name**, **IP Address**, and **Port**, then click **Save**. 2. You can also add deployed servers from **SSL >> Certificates >> More >> Add Deployed Server**. Refer to [this](https://www.manageengine.com/key-manager/help/deploy-ssl-certificates.html) document to learn more about SSL certificate deployment. ![multiple-server](https://www.manageengine.com/key-manager/help/images/multiple-server.png) 9. To verify sync status, select the server and click **Check Status** in the top pane. Key Manager Plus will evaluate the sync status and display it in the corresponding column. ![multiple-server-1](https://www.manageengine.com/key-manager/help/images/multiple-server-1.png)