osx system keychain uses a randomly generated password

This was a random thing I encountered, so it bothered me until I figured out why I could not remember the password set for my System Keychain.

The reason was that I didn’t set one, and that it is randomly generated. WEP, preshared WPA keys, and other such things are kept in there. To view them, you need to have access to the keychain.

What is a geek to do? Well, clearly you have to know to perform something like the following:

sudo mv /Library/Keychains/System.keychain /Library/Keychains/System.keychain.backup
sudo systemkeychain -k /Library/Keychains/System.keychain -C <a password>

where “password” is the new keychain password that you want to give to the System keychain
Reboot the system

Technorati Tags: ,

2 Comments

  1. ben
    Posted August 7, 2008 at 11:51 pm | Permalink

    does this erase the old keychain or just change the password?

  2. Posted August 8, 2008 at 1:47 am | Permalink

    This would move the previous system keychain to a backup location, via the mv command and replace it with a blank keychain where the password is known.

One Trackback

  1. [...] Via this Google search, Bad Penny brings the good word on how to set the OS X System Keychain password, which is apparently a random value by default: [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*