Having to remember all your passwords for all your accounts — email, social media profiles, apps, and website profiles — is impossible, unless you use the same password for all accounts (which is not recommended). That’s why password managers are a gift from heaven. You no longer have to worry about ever forgetting your password because the password manager remembers it all for you.
Apple devices have their own built-in password manager called Keychain. Apple Keychain makes it easier for users to create safe and complex passwords, as well as store account information, so users don’t have to remember it all the time. Keychain Access is available for iPhones, iPads, and Macs. Just save your login details for the website you want to access so you can directly log in using Keychain the next time you visit that website.
But what happens when you can’t access your Keychain because the data got deleted some way or another? It can be a huge hassle trying to recover the information for all those websites, especially if there is sensitive or financial data included in your Keychain account.
Keychain data can get deleted due to various reasons. A common scenario is when an error occurs on macOS that needs to be fixed by changing settings and preferences. An update gone wrong can also wipe out data on your Mac, including passwords and website data.
However, the most common reason why Keychain data might be lost is the re-installation of macOS. If for some reason, the Mac operating system had to be re-installed and the old system settings were not saved, your Keychain data will be lost.
But you don’t have to panic, because there are several ways to restore Keychain in macOS High Sierra. Mac users who found their Keychain data deleted can restore Keychain from iCloud, restore from a backup or restore the old Keychain file from the Library folder.
How to Restore Keychain in macOS High Sierra
Getting your Keychain access deleted can be stressful because you’ll lose all your passwords, auto-fill information, and other data that makes your internet life so convenient. Fortunately, there are several ways to restore Keychain in macOS High Sierra.
This guide will show you how to get back your deleted Keychain data in three ways: via iCloud, via Time Machine backup, and via Library folder. You’ll just have to choose which method fits your circumstances.
Before you try restoring your Keychain access, it is important to take these preparatory steps first to make the troubleshooting process smooth and efficient. First, turn off Keychain Access on your Mac to prevent it from syncing to your iCloud Keychain or other devices.
To turn off iCloud Keychain on macOS, follow these steps:
- Click the Apple menu, then choose Preferences from the dropdown list.
- Click iCloud, and then uncheck Keychain.
- Enter your Apple ID and password to continue.
- Follow the on-screen instructions to proceed.
Once you have disabled iCloud Keychain, the next step is to clean up your system using Outbyte MacRepair. This tool gets rid of all junk files that might interfere with the troubleshooting process. After doing all this, you can proceed with the fixes below.
Method 1: Restore Keychain From iCloud.
One of the good things about Apple is that you can sync most of its services via the Cloud. In this case, you can sync Keychain Access to your iCloud account so that any information you add will also get automatically added to other devices using your iCloud account.
This means that any changes you make to your Keychain Access on your iPhone will get synced to your Mac, iPad, or other Apple devices linked to your iCloud Keychain. This is the reason behind the disabling of your iCloud Keychain on Mac.
Follow the instructions below to restore Keychain from your iCloud account:
- Make sure that the iCloud Keychain is turned off on your Mac and all other devices.
- Turn on iCloud Keychain on the device that you want to restore the data from. It could be your iPhone, iPad, or another Mac.
- Turn on iCloud Keychain on your Mac where you want Keychain to be restored. Just go to Preferences > iCloud, then tick off Keychain.
Your Mac’s Keychain should automatically sync with the Keychain on the device where you turned it on first.
Method 2: Restore Keychain from Time Machine.
Time Machine is your Mac’s default backup system that runs in the background. It creates backups of your macOS, including files and system settings, on a regular basis. You can use your Time Machine backup to restore files, such as Keychain data, to their previous version.
Here’s how you can restore Keychain from a Time Machine backup:
- Launch Keychain Access under the Utilities folder.
- Click Keychain Access from the top menu, then choose Preferences.
- Click on the First Aid tab.
- Tick off Synchronize login keychain password.
- Close the Preferences window and go back to the Keychain Access dropdown menu,
- Select Keychain First Aid this time.
- Type in your admin username and password.
- Click Repair, then Verify.
- Quit the Keychain Access app by pressing Command + Q.
- Navigate to Finder > Go > Go to folder, then search for ~/Library/Keychain/login.keychain. Highlight the file.
- Open Time Machine and choose a restore point you want to use.
- Click Restore this file. This should replace the current version of the login.keychain with that from your backup.
- Go back to Finder and look for ~/Library/Preferences/com.apple.keychainaccess.plist this time. Highlight the file as well.
- Go back to Time Machine and choose the same restore point you have chosen initially.
- Click Restore this file. This should replace the current version of the keychain .plist file with that from your backup.
- Relaunch the Keychain Access app and click the Keychain Access menu.
- Select Keychain First Aid, then type in your account username and password.
- Click Repair and wait for the process to be completed.
Relaunch the Keychain Access app to check if the passwords have been restored.
Method 3: Restore Keychain from Library.
If you accidentally deleted your Keychain passwords, you can simply restore them from the Library folder. However, the Keychain folder is hidden by default, so you need to take some extra steps to restore them.
To do this:
- Quit the Keychain Access app.
- Launch Finder and press Shift + Command + G.
- Type in this address: ~/Library/Keychains, then press Enter to open the folder.
- Rename all files in that folder.
- Open Keychain Access, then click Keychain List from the Edit menu.
- Select the keychain you would want to replace with the backup version.
- Click the (-) button to delete that Keychain file.
- Drag your original Keychain files from the Trash to the Keychains folder.
- Go back to Keychain Access and click Edit > Keychain List.
- Click the (+) button and choose the Keychain files you want to use. Click Open.
- Click OK and close the Keychain Access app.
Relaunch the app to check if the passwords have been restored.
Keychain Access is a handy app for remembering passwords and autofill data. It is troublesome when you accidentally delete your Keychain data or it gets wiped out for some reason, because recovering these passwords takes a lot of time and patience. What you can do is recover your Keychain instead using the methods above. It is more efficient and less time-consuming that way.