How do I transfer both private / public keys from one mac to the other?
I know how to export the private key to .p12 with Keychain Access, and then when I double click it in the destination mac, it's added to Keychain Access. However, when I export the public key to .pem file, double clicking it in the destination mac just spits out:
An error has occurred. Unable to import an item. The contents of this item cannot be retrieved.
When I tried the solution of security import pub.pem -k login.keychain
, it said 1 key imported.
, but it doesn't show on Keychain Access.
- Am I missing anything?
- Should I not bother with transferring the public key?
- Is importing just that private key enough?
- Is the only way just recovering the public key from the private key?
Thanks