5

I know that one can easily migrate any *.keychain from one Mac to another, however, the "local items" keychain introduced in Mavericks is not stored as a *.keychain file but as a list of *.kb and *.db files.

I don't use iCloud Keychain and don't plan on using it. I also don't have access to the same device that was used to create the local items in the first place. The logic board has been changed.

As using a backup from time machine only partially restored the local items keychain (a number of entries are definitely missing) I am wondering whether I can in any way or shape extract the previously created items in the local items list and/or import them into a new "real" keychain.

  • I have a similar issue. Have you had any luck with this? – orome Aug 23 '14 at 21:49
  • Sorry, no solution yet and I personally don't have the time to work on it for the foreseeable future … using forgot my password functions mostly worked and I had all important passwords covered in the login.keychain anyway. – Nikolas Grottendieck Aug 23 '14 at 21:54
  • Bummer. This has really messed me up (lots of critical passwords in "Local Items" — I never asked to put them there! — and now I'm stuck). – orome Aug 23 '14 at 21:58
  • Many users. Apple didn't tell anybody that TimeMachine does not help with damaged devices when not using iCloud. That's scandalous. Unbelievable. If only someone could provide info about the encryption... – Julian F. Weinert Nov 1 at 17:24
3

Backup of Local Items keychain

  1. Create a new keychain in Keychain Access via File > New Keychain...
  2. Copy all the entries from Local Items over to this newly created keychain
  3. Backup the keychain by navigating to ~/Library/Keychains/ and copying the newly created keychain to a safe place
  4. You can now delete the newly created keychain in Keychain Access via right-click Delete Keychain (Delete References & Files)

Restore of Local Items keychain

  1. Add the backed up keychain in Keychain Access via File > Add Keychain... and navigating to its location
  2. Copy all the entries from this keychain over to Local Items
  3. You can delete the previously added keychain since all of the entries now reside in Local Items
  • This generally works, however, only for the keychain elements used prior to Mavericks. Mavericks and Yosemite use the iCloud/Local Items keychain by default instead. Importing these is appears to be impossible. Which is why your solution doesn't work for my particular question. – Nikolas Grottendieck Dec 18 '14 at 12:45
  • 1
    For typing my password 200 times, I used the AppleScript here: gist.github.com/rmondello/b933231b1fcc83a7db0b – andrew Feb 1 '16 at 22:27
  • @andrew what a life saver. But seem to found a newer version, that doesn't require any extra install/software, for exporting a keychain to CSV. github.com/lifepillar/CSVKeychain – cde Dec 21 '17 at 5:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .