My keychain passwords disappeared after I upgraded to High Sierra. I have 130+ entries made in secure notes of Keychain Access. How do I restore them?
In detail: After upgrade to MacOS 10.13 from 10.11 my login keychain is out of sync and I lost all my 133 Password Entries I saved to secure notes. I can only temporarily restore them via Terminal commands. I see that my old key database was renamed to login_renamed_1.keychain-db. If I rename it to login.keychain-db and open /Applications/Utilities/Keychain\ Access.app and my Password Entries are there again, but everytime I log out of my User Account (both after restart or after logging out) a new file named login.keychain-db is created and my Passwords are gone again.
Here is what I do in Terminal:
bash$ security default-keychain
"/Users/myself/Library/Keychains/login.keychain-db"
bash$ security set-keychain-password "/Users/myself/Library/Keychains/login.keychain-db"
Old Password:
New Password:
Retype New Password:
This puts my keychain back in sync (password is set), but I still miss my PW Entries in secure notes.
So I am also setting a Password for the old keychain database (lines beginning with '//' are comments, thus no Terminal input ):
bash$ security set-keychain-password login_renamed_1.keychain-db
Old Password:
New Password:
Retype New Password:
bash$ sudo mv login.keychain-db login.keychain-db-out
// renaming the current keychain-db to "*-out"
bash$ mv login_renamed_1.keychain-db login.keychain-db
// renaming the old keychain-db to the name of the default keychain
When I open Keychain Access.app after this my Password Entries have returned, but only for so long as I do not log out or restart my Mac. Upon login or startup a new login.keychain-db file is created and the old one is again renamed to login_renamed_1.keychain-db.
At this time the only way I can retrieve my Password Entries is to open each entry, copy the contents of the secure note in a Text file, which I would have to repeat 133 times. I would rather keep my old databes instead, as you easily may imagine.
Does anybody of you has a solution for this? Thank you in advance for your patience reading this and – hopefully – for your help.