chef_client: add tests for converting certs to public keys