This article provides steps that help the Aria Operations for Logs agent handle expired Windows CA root certificates correctly.
Symptoms:
- Unable to get the agents on Windows server to forward logs to the Aria Operations for Logs server even after creating firewall rules based on required ports for the appliance.
- When there is an expired certificate and a valid certificate in Trusted Root Certification Authorities of the Windows client machine, the Aria Operations for Logs agent will not be able to differentiate it and can use the expired one. If the agent uses the expired certificate, the communication between the Agent and Server will be broken.
- On the Windows client machine, under C:\ProgramData\VMware\Log Insight Agent\log\liagent_<date>.log, you see errors similar to:
2021-08-11 18:33:56.404452 0x00001a28 <trace> CFApiTransport:128 | Re-connecting to server syslog.domain.local:9543
2021-08-11 18:33:56.435707 0x00001a28 <warng> SSLVerifyContex:165| Certificate pre-verify error = 10 while trying connect to 'syslog.domain.local'. certificate has expired
2021-08-11 18:33:56.435707 0x00001a28 <error> CurlConnection:723 | Transport error while trying to connect to 'syslog.domain.local': SSL peer certificate or SSH remote key was not OK
2021-08-11 18:33:56.435707 0x00001a28 <trace> CFApiTransport:108 | Postponing connection to syslog.domain.local:9543 by 247 sec.
2021-08-11 18:38:15.165892 0x00001a28 <trace> CFApiTransport:128 | Re-connecting to server syslog.domain.local:9543
2021-08-11 18:38:15.197138 0x00001a28 <warng> SSLVerifyContex:165| Certificate pre-verify error = 10 while trying connect to 'syslog.domain.local'. certificate has expired
2021-08-11 18:38:15.197138 0x00001a28 <error> CurlConnection:723 | Transport error while trying to connect to 'syslog.domain.local': SSL peer certificate or SSH remote key was not OK
Note: The preceding log excerpts are only examples. Date, time, and environmental variables will vary depending on your environment.
- In the above mentioned log file, you might also see it as:
Transport error while trying to connect to '<IP_Address or FQDN_of AriaLogs>': SSL peer certificate or SSH remote key was not OK