|This article needs additional citations for verification. (July 2013)|
|Operating system||Mac OS X/9|
|Website||Keychain programmers guide|
Screenshot of Keychain Access on Mac OS X v10.5.
|Stable release||5.0 (55006) / October 12, 2011|
|Operating system||Mac OS 9, Mac OS X|
|Stable release||Beta / June 10, 2013|
|Operating system||OS X Mavericks (version 10.9), iOS 7|
|Type||password manager, utility|
Keychain is Apple Inc.'s password management system in Mac OS. It was introduced with Mac OS 8.6, and has been included in all subsequent versions of Mac OS, including Mac OS X. A Keychain can contain various types of data: passwords (for Websites, FTP servers, SSH accounts, network shares, wireless networks, groupware applications, encrypted disk images), private keys, certificates, and secure notes.
Storage and access
In Mac OS X, keychain files are stored in ~/Library/Keychains/, /Library/Keychains/, and /Network/Library/Keychains/, and the Keychain Access GUI application is located in the Utilities folder in the Applications folder. It is free, open source software released under the terms of the APSL. The command line equivalent of Keychain Access is /usr/bin/security.
Locking and unlocking
The default keychain file is the login keychain, typically unlocked on login by the user's login password, although the password for this keychain can instead be different from a user’s login password, adding security at the expense of some convenience. The Keychain Access application does not permit setting an empty password on a keychain.
The keychain may be set to be automatically "locked" if the computer has been idle for a time, and can be locked manually from the Keychain Access application. When locked, the password has to be re-entered next time the keychain is accessed, to unlock it. Overwriting the file in ~/Library/Keychains/ with a new one (e.g. as part of a restore operation) also causes the keychain to lock and a password is required at next access.
If the login keychain is protected by the login password, then the keychain's password will be changed whenever the login password is changed from within a logged in session on OS X. On a shared Mac/non-Mac network, it is possible for the login keychain's password to lose synchronization if the user's login password is changed from a non-Mac system. Also, if the password is changed from a directory service like Active Directory or Open Directory, or if the password is changed from another admin account e.g. using the System Preferences. Some network administrators react to this by deleting the keychain file on logout, so that a new one will be created next time the user logs in. This means keychain passwords will not be remembered from one session to the next, even if the login password has not been changed. If this happens, the user can restore the keychain file in ~/Library/Keychains/ from a backup, but doing so will lock the keychain which will then need to be unlocked at next use.
Keychain Access is a Mac OS X application that allows the user to access the Keychain and configure its contents, including passwords for websites, web forms, FTP servers, SSH accounts, network shares, wireless networks, groupware applications, encrypted disk images, etc. It unlocks, locks, and displays passwords saved by the system which are dynamically linked to the user's login password, as well as managing root certificates, keys, and secure notes.
Its graphical user interface displays various keychains, with there usually being at least two; the login keychain and the system keychain. It also includes the Keychain first aid utility that can repair problems with Keychains. Various events can cause problems with Keychains, and sometimes the only solution to solving a problem is to delete the Keychain, which also deletes any passwords stored in the Keychain, and create a new one.
It is usually found in the Utilities folder under Applications in OS X. As an ancillary application to OS X, it is subject to updates via Software Update and thus should not be moved out of the Utilities folder. There is also an included command-line tool to access the keychain, called "security".
iCloud Keychain was announced at the 2013 Apple Worldwide Developers Conference (WWDC), to be released as part of iOS 7 and OS X Mavericks (version 10.9). It was not released with the initial release of iOS 7, instead being added with the release of iOS 7.0.3 and OS X Mavericks following Apple's October 22, 2013 event. It re-introduces the old MobileMe Keychain syncing function that was removed with the initial release of iCloud in 2011, but now renamed iCloud Keychain.
It functions as a secure database that allows information including a user's website login passwords, Wi-Fi network passwords, credit/debit card management (though without CVV), and other account data, to be securely stored for quick access and auto-fill on webpages and elsewhere when the user needs instant access to them. They are always stored encrypted using 256-bit AES encryption, are stored on device and pushed from iCloud between devices, and only available on a user's trusted devices.
The service can also suggest new longer and more secure passwords to the user, if and when required. It will only be available for use on Apple platforms, and even more specifically, when using inside a browser, will only work with Safari browser on iOS 7.0.3 and OS X Mavericks (version 10.9) onwards.
Keychains were initially developed for Apple's e-mail system, PowerTalk. Among its many features, PowerTalk used plug-ins that allowed mail to be retrieved from a wide variety of mail servers and online services. The keychain concept naturally "fell out" of this code, and was used in PowerTalk to manage all of a user's various login credentials for the various e-mail systems PowerTalk could connect to.
The passwords were not easily retrievable due to the encryption, yet the simplicity of the interface allowed the user to select a different password for every system without fear of forgetting them, as a single password would open the file and return them all. At the time, implementations of this concept were not available on other platforms. Keychain was one of the few parts of PowerTalk that was obviously useful "on its own", which suggested it should be promoted to become a part of the basic Mac OS. But due to internal politics, it was kept inside the PowerTalk system and, therefore, available to very few Mac users.
It was not until the return of Steve Jobs that Keychain was liberated from the now-dead PowerTalk. By this point in time the concept was no longer so unusual, but it was still rare to see a keychain system that was not associated with a particular piece of application software, typically a Web browser. Keychain became a standard part of Mac OS 9, and was included in Mac OS X in the first commercial versions.
- List of password managers
- Password Safe
- Pleasant Password Server
- "Apple - Support". Docs.info.apple.com. Retrieved August 13, 2012.
- "Apple - Support". Docs.info.apple.com. Retrieved August 13, 2012.
- Apple Inc. "Source Browser". Opensource.apple.com. Retrieved February 26, 2012.
- "Apple - OS X Lion - At the heart of every Mac is one powerful OS". Images.apple.com. Retrieved February 26, 2012.
- "Mac OS X 10.5 Help: Changing your keychain password". Docs.info.apple.com. Archived from the original on June 13, 2011. Retrieved February 26, 2012.
- "Mac OS X 10.4 Help: Locking and unlocking your keychain". Docs.info.apple.com. Archived from the original on June 13, 2011. Retrieved February 26, 2012.
- Frequently asked questions about iCloud Keychain. Apple Support. Retrieved 27 October 2014.