Mac OS X Keychain Export is Broken

To remove passwords and keys from the keychain it seems like

$ security export -k login.keychain

would be the obvious way to go. Unfortunately, this usually gives the following error

$ security: SecKeychainItemExport: Passphrase is required for import/export.

Instead you can use the following command

$ security dump-keychain -d keychain

Update: The same limitations seen on the command line appear to be present in the GUI as well. The “File > Export Items…” menu is greyed out when selecting anything but public keys or certificates.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s