err: Could not request certificate: Retrieved certificate does not match private key

I'm getting the below error when running "puppet agent --test" after locking down a node, in order to test changes from my local puppetmaster (I SSH'd from my Puppetmaster, binding the 8140 port).

root@node1 ~]# puppet agent --test
err: Could not request certificate: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key
Exiting; failed to retrieve certificate and waitforcert is disabled