API Reference
Class
AgentCertificateManager
Manages the agent client certificate lifecycle (enroll/renew).
Inheritance
- Object
- AgentCertificateManager
Constructors
public AgentCertificateManager(AgentTransportConfig config, AgentApiClient apiClient) #Creates a new certificate manager.
Parameters
- config ComputerX.Agent.AgentTransportConfig
- apiClient ComputerX.Agent.AgentApiClient
Methods
public async Task<X509Certificate2> EnsureCertificateAsync(String agentId, String agentName, Dictionary<String, String> tags, CancellationToken cancellationToken, Boolean forceRenew = false) #Returns:
Task<X509Certificate2>Ensures a valid client certificate exists and returns it.
Parameters
- agentId System.String
- agentName System.String
- tags System.Collections.Generic.Dictionary{System.String,System.String}
- cancellationToken System.Threading.CancellationToken
- forceRenew System.Boolean = false
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object