security – Exporting ALL keychain data

Spread the love


An authentication screwup was threatening to delete all of my encrypted data.  I eventually got around it, but on the way, I attempted


sudo security dump-keychain -d (keychain) > (file) 

so that I could reload it afterward.

For EVERY item in the keychain I got an authentication popup for my password. It had an “always allow” button, but apparently that means “always allow for that one item.”

So, unless there is some other trick, security dump-keychain is completely useless.

If that “other trick” exists, please enlighten me.

Export keychains looks like an answer at first, but after studying it, I see that it only gets the “internet password” subset, not all items.

Author: Subham

Leave a Reply

Your email address will not be published. Required fields are marked *