Linux Agent Showing Expired or Invalid Automox Certificates

Checking and starting the Automox Agent - Linux

In the this article, we cover how to resolve a Linux agent showing "expired or invalid Automox certificates."

Verifying the issue

If you have installed the Linux agent but it's not appearing in your Automox console, it could be due to old Certificate Authority data on your machine. To verify this is the case, refer to the amagent logs on the device. Refer to this article for how to locate the amagent.log file.

In the logs, look to see if there is a message similar to this:

loop.go:289: ERROR: client.DoInstall(): Post "https://api.automox.com/install": x509: 
certificate has expired or is not yet valid: current time xxxx-xx-xxTxx:xx:xx+xx:xx is
after xxxx-xx-xxTxx:xx:xx+xx:xxZ

The cause is most likely due to your device having stale CA data. The Automox agent relies on CA data stored by your machine's operating system.  

Resolving the issue

To refresh your CA data, you can run one of the following commands.

For Redhat based OSes run:

yum update ca-certificates -y -q

For Debian based OSes run:

apt-get update -y -qq

 

Then, restart the Automox service using:

sudo service amagent restart
Was this article helpful?
0 out of 0 found this helpful