Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have reset my OS X Lion Keychain by mistake. Is there any way to restore the Keychain content from Trash?

I'm asking this because I do find a Keychain Access icon in the Trash Bin. It would be a big help since the reset seems to have wiped out all the certificates.

share|improve this question
1  
Well, if you have a keychain in your Trash, just right-click it and put it back. Or move it to ~/Library/Keychains. –  slhck Oct 15 '12 at 11:51
    
I did a search with Finder. There doesn't seem to have any directory named Library in my OSX 10.7.5.. –  Stanley Oct 16 '12 at 3:15
add comment

1 Answer

up vote 1 down vote accepted

The Library folder where your keychains are stored is hidden by default.

First, quit Keychain Access.app.

Open Finder and press Shift Cmd G, then enter ~/Library/Keychains. Here, rename the existing default file, and drag your original file back from the Trash.

Restart Keychain Access and you should see your old one restored.

share|improve this answer
    
Thanks for the answer. I have exported the keys/certificates from my home computer and imported to the office computer where the Keychain was lost. But your solution should also work since I can now find the Library folder... –  Stanley Oct 16 '12 at 20:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.