Reduce indentation in CertCommand#build_key
Ensure private key is not copied

See #807