Replacing an agent
Replace an agent with a new one, for example when Entrust asks you to in a security bulletin.
The replacement has three essential parts:
- Replace the virtual machine with a new agent from a newly downloaded image.
- Delete the old agent and associated virtual-machine artifacts.
- Rotate credentials that could have been exposed, including WSTEP Active Directory credentials where applicable.
Before you start
Make sure you have:
- A PKIaaS account with the Owners or CA Administrators role. See Accessing your instances.
- The Agent Link Secret for each agent configuration you will move, if one is configured.
- Permission to create virtual machines in VMware vSphere, Microsoft Azure or AWS.
If an Agent Link Secret is required and you no longer have it, contact Entrust Support before replacing the agent.
Step 1: Identify the agents to replace
To identify the agents to replace:
Follow Accessing your instances to log in to the PKIaaS user interface using an account with one of the following roles:
- Click Agents in the sidebar.
- Select the Agents tab.
- Record the Agent ID of each agent, then open it and read its Agent Created At date.
- Identify every agent that must be replaced, for example every agent created before the date given in a security bulletin.
- For each agent to replace, also record from its details:
- Friendly Name
- Services
Step 2: Download a new agent image
To download a new agent image:
Follow Accessing your instances to log in to the PKIaaS user interface using an account with one of the following roles:
- Click Agents in the sidebar and select Create > Agent. The Register an Agent page opens.
- Download the image for your environment:
- VMware vSphere
- Azure
- AWS
- Click Agree in the License Terms and Conditions dialog to start the download.
Do not reuse an agent image downloaded earlier.
Do not reuse Azure images, Amazon Machine Images (AMIs), VM templates or other images created from an older agent image. Delete these old images to prevent accidental redeployment.
Step 3: Deploy the new agent
Deploy the newly downloaded agent image using the instructions for your platform:
Deploy the replacement agent in the same network environment as the agent it replaces so that it has the required access to:
- DNS servers
- domain controllers
- PKIaaS
When the new agent starts, its console shows a 6-digit one-time password (OTP), refreshed every 30 seconds.
Step 4: Register the new agent
To register the new agent:
Follow Accessing your instances to log in to the PKIaaS user interface using an account with one of the following roles:
- Click Agents in the sidebar and select Create > Agent. The Register an Agent page opens.
- Enter the OTP currently shown on the new agent’s console.
- Click Register.
- Wait for the new agent to appear in the Agents tab.
- Verify that its status is Online.
- Record its Agent ID.
If the old agent has no agent configuration, proceed directly to Step 6: Delete the old agent.
Step 5: Move the agent configuration
To move the agent configuration:
Follow Accessing your instances to log in to the PKIaaS user interface using an account with one of the following roles:
- Click Agents in the sidebar and select the Agent Configs tab.
- Locate the configuration recorded in Step 1.
- Select the three dots (…) to the right of the configuration, select Unlink Agent and click Unlink.
- Select the three dots (…) again and select Link Agent.
- Select the Agent ID of the replacement agent.
- If prompted, enter the Agent Link Secret.
- Click Link.
- Return to the Agents tab, open the new agent, and verify that the expected configuration and services are shown.
Step 6: Delete the old agent
After confirming that the replacement agent is registered:
Follow Accessing your instances to log in to the PKIaaS user interface using an account with one of the following roles:
- Click Agents in the sidebar and select the Agents tab.
- Locate the old agent.
- Select the three dots (…) to the right of the old agent, select Delete Agent and confirm.
Deleting it removes the old agent identity from PKIaaS.
Then delete the old virtual machine from VMware vSphere, Microsoft Azure or AWS, including associated:
- virtual disks;
- snapshots;
- backups; and
- templates or reusable images.
This prevents the old agent from being accidentally restored or redeployed.
Step 7: Rotate WSTEP credentials
Perform this step if the old agent provided WSTEP enrollment services and its credentials could have been exposed.
Change the password for every Active Directory account configured in PKIaaS for WSTEP.
After changing the password in Active Directory:
Follow Accessing your instances to log in to the PKIaaS user interface using an account with one of the following roles:
- Click Certificate Authorities in the sidebar and select the Enrollment Protocols (Legacy) tab.
- Click WSTEP in the protocol list.
- For each configured Active Directory, select the three dots (…) and select Modify Root Active Directory.
- Enter the new password in Password and Confirm Password.
- Click Modify.
See Adding Active Directory nodes for additional configuration information.
Step 8: Verify WSTEP enrollment
After the replacement, verify that enrollment is operating normally.
On a test Windows computer in the domain, run:
certutil -pulse
or:
gpupdate /force
Confirm that the expected certificates are successfully enrolled.
If the replacement agent does not come online or certificate enrollment does not work, contact Entrust Support and provide the Agent ID.