I've followed the instructions at
http://docs.saltstack.org/en/latest/topics/tutorials/preseed_key.html for preseeding minions. I have virtual machines with minion.pub and minion.pem being inserted on boot. The keys are correctly accepted on the master. But when the minion tries to authenticate, it gives this error:
"[CRITICAL] The Salt Master has rejected this minions public key!"
I removed the pre-accepted keys and manually accepted them, and that worked. But when I compared the public keys for the minion on the master, I found that the key the minion was sending to the master was NOT the one in /etc/salt/pki/minion (which is the one the instructions said it should be using). This is why the authentication was failing.
I can't even find any file on the machine with the public key that the minion is sending to the master! It's like it's pulling it out of thin air. And I can't pre-seed a file I can't locate.
Can anyone help me out here? Am I missing a configuration setting or something?