Import Private Key .pem file to Mac OS Keychain

Kept getting error.

An error has occurred. Unable to import an item.

The contents of this time cannot be retrieved

UIZqa

Here is the fix from:

http://stackoverflow.com/questions/8874164/export-public-key-from-keychain-access/11979625#11979625

It’s been broken since 2009 as reflected in this bug report.

In case that report wanders off the internet, here’s the relevant instructions to import a public key pem file. You’ll want to execute this in Terminal.

security import pub_key.pem -k ~/Library/Keychains/login.keychain

Find hidden file on mac:
In the find file window, press Command-Shift-G. It’ll ask you what folder to navigate to. Enter “~/.ssh” and press return.

Comments are closed