puppetlabs/puppet — pull request #2574 by renanvicente (2014-04-24 14:42:53+00:00)
Title: issue warnings to certificate does't match

issue warnings when certificate between master and agent doesn't match.
At the moment the message says to execute rm -r certificate but it doesn't solve the problem, need to erase the private key too.
This code shows the right command to execute.
to test this erase your certificate and key from the agent using the command below and try use puppet agent -t again.
`find $(puppet master --configprint ssldir) $(facter fqdn).pem -delete`