How to transfer keychain data from an external SSD?

I need some information about Keychain access. I plan to replace the SSD currently in my MBP with a larger SSD. The SSD currently in my MBP would be placed in an enclosure which will be essentially an external drive. I plan to put a clean copy of the OS on the new drive to avoid any transfer of malware and so on which would happen if I cloned the drive I remove. My only concern is the Keychain Access folder. I need to keep all the information in the Keychain Access folder on the “old” drive and transfer it to the new drive. Can I be sure that if I copy and paste the folder I will be getting all the data?


Solution 1:

The best way to copy your keychains to a new computer is to export and then import them using Keychain Access. See Import and export keychain items.

However, you can also manually copy your keychains to another Mac/mac using the steps below. It should work in your scenario too.

  1. On your Mac, locate the keychain files you want to transfer.

Keychains are usually located in the Keychains folder in the Library folder in your home folder. To locate these files, press and hold the Option key and choose to Go > Library, then open the Keychains folder.

  1. Select the keychains you want, then press and hold the Option key and drag the selected keychains into another folder to copy them to the folder.

Keychain files typically end with .keychain-db. Don’t select and copy encrypted folders with names that appear as a series of numbers.

  1. Transfer the folder containing the keychains to the new computer.

Important: Transfer the keychains in a safe manner so no unauthorized person can access them. For example, use AirDrop or a USB flash drive to copy the files.

  1. Change the name of the transferred keychains on your new computer so they don’t become confused with any of the existing keychains.

This is especially important if you are copying a standard keychain, such as the login keychain.

  1. Open Keychain Access, located in the Utilities folder in the Applications folder.
  2. Add each copied keychain one by one by choosing File > Add Keychain, selecting your keychain, then clicking OK.