This pull request was supposed to create a simple way to add a trusted key.
What I expect to happen:
cf-key --trust-key server.pub creates a trust relationship between the host and the server which uses server.pub.
cf-agent runs normally, trusting the server
What actually happens:
cf-key --trust-key server.pub copies the file correctly to ppkeys/root-MD5=correct.pub
cf-agent runs and complains that the server is not trusted.
You still have to trust the key the old way with `cf-runagent -i`.
`cf-runagent -i` apparently adds the key to cf_lastseen.tcdb, which actually makes the key trusted.
Perhaps cf-key needs to touch cf_lastseen.tcdb as well?
Or maybe cf-agent is not checking for trusted keys in ppkeys/ when it should?
I'm not sure what the ideal search path is for trusted key in cf-agent.
To reproduce the problem on a functional (not-new) system:
1. Delete cf_lastseen.tcdb*
2. Run cf-agent