The agent has no signed certificate.
At first invoking this command, the agent sends a certificate request to puppetmaster. If the command is run with a parameter --waitforcert 20
then the agent will wait until his certificate request is signed by the puppetmaster and 20 second there is a period between attempts.
On server where puppetmaster is running, you have to sign his request, e.g. with command:
puppet cert --all sign
Also ensure that server hostname is specified in "/etc/puppet/puppet.conf"
[main] server = puppet.example.com
Newer version abandoned this command in favor puppet agent --test
.
For testing purpose you can enable autosign, but is generally unsafe.
[main] autosign = true