Dynamic agents not connecting after certificate rotation when using JWT
About this task
Workaround
After modifying the certificates on the
master domain manager, if the
communication has been lost, you can recover it by running the following command on
each dynamic agent:
./AgentCertificateDownloader.sh --jwt false --work_dir <work_dir> --tdwbhostname <tdwbhostname>
--tdwbport <tdwbport> --gwid <gateway_id> --gateway <local|remote|none>
--apikey <API key for authentication with the master domain manager>After
running the command, restart the agent. Problem prevention
If
you are using JWT, you can disable this setting before modifying the certificates to
prevent communication problems. To disable JWT and switch to using certificates,
perform the following steps:
- Browse to the ita.ini file on the dynamic agent. The file is located in TWA_DATA_DIR/ITA/cpa/ita.
- Comment out the jwt_file = line, if existing. Consider
the following example:
#jwt_file = - Restart the agent.