Import Lastpass/1Password/Etc passwords into iCloud Keychain
I will keep it short and simple. Here is what I wanted to do over the 3 day long weekend.
Move all of my passwords from LastPass premium over to iCloud Keychain.
And it turned out to be a nightmare because…
An iCloud Keychain is not the same thing as a regular Login or System keychain.
Therefore the security tool on Mac OSX cannot access it. After doing a lot of research, I (not so quicky) realized that there was no easy way for me to access the iCloud Keychain from a script or any other program except the default Keychain Access app. However, Safari lets you import passwords from Firefox!! So here are the steps if you want to import your LastPass data into iCloud Keychain
- Export all your passwords from LastPass by going to LastPass Icon > More Options > Advanced > Export which will give you all your passwords in a CSV format in a new browser tab.
- Copy the data to a new .csv file and make sure that the format is correct.
- Install Firefox 56 or below from this link.
- Install this handy extension which will import all your passwords into FireFox. Note that this extension does not work on the latest FireFox (Quantum).
- In FireFox, Go to Options/Preferences -> Security pane -> Passwords -> Import/Export Passwords button and export the passwords. If you don’t have any passwords in FireFox, it will be an empty file. But the important bit is the first two lines of this CSV file.
- Replace the first line of LastPass exported CSV with the first two lines of the CSV from the previous step.
- In FireFox, Go to Options/Preferences -> Security pane -> Passwords -> Import/Export Passwords and this time, import the updated CSV file from LastPass which you edited in the last step.
- Once the import is finished, Go to Safari > File > Import From > FireFox which will then import all your passwords in the iCloud Keychain.
I believe this can work with other Password Managers like 1Password etc as majority of them let you export the data as CSV. Hope this helps!
Update
I realized that the original FF importer extension is now gone. This tool seems like a good replacement.
https://github.com/louisabraham/ffpass