agentcomm.clientCertificate.maxAgeDays=730
The agentcomm.clientCertificate.maxAgeDays
property
defines the validity of the certificate in days. The minimum allowed value
is 90 days.
Note: Offline agents cannot rotate a
certificate. If you have agents that are offline for extended periods of
time, do not set agentcomm.keypair.maxAgeDays
or
agentcomm.clientCertificate.maxAgeDays
to a combination
that results in expired or invalid certificates. When these agents are
started, they cannot rotate to a valid certificate and connect with the
server.
The following scenarios are explained that describe the server
behavior on how you set the agent's and server's maxAgeDays
property:
Scenario 1: When you set the agent's maxAgeDays
property to 7300 days (20 years) and set the server's maxAgeDays property to
730 days (2 years).
In this scenario, the agent will automatically
attempt to rotate the certificate every 20 years. If the agent is offline
for 731 days or more, the server will reject the agent's certificate and
will fail to communicate with the agent. You must start the agent and
manually rotate the agent's certificate.
Scenario 2: When you
set the agent's maxAgeDays property to 90 days (3 months) and set the
server's maxAgeDays property to 730 days (2 years).
In this scenario,
the lower bound is set by the agent. The server accepts the agent's
certificate validity of 90 days and the agent will attempt to rotate the
certificate every 60 days, which is 30 days before its expiry. If the agent
is offline for 91 days, the agent will not be able to rotate its certificate
even if the server’s maxAgeDays property is set to 730 days. You must start
the agent and manually rotate the agent's certificate.
Scenario
3: When you set the agent's maxAgeDays property to 90 days (3
months), have not enabled the enforcement, and the agent is offline for 91
days.
In this scenario, the server will be able to communicate with
the agent when the agent is started later. The agent will rotate its
certificate when it comes back online. No manual intervention is required in
this scenario.