Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

so here is my problem:

we all know that the osx keychain is located in ~/Library/Keychains/something.keychain

now i've got this file and i know the master password for this keychain. is there a way to browse the keys in there using a external software or something? I don't want to import this keychain into my current one (if its possible).

Any ideas?

share|improve this question
What do you mean by “external software”? Something that is not Keychain Access? Something from a third party (not Apple)? Something that can run on a platform other than Mac OS X? – Chris Johnsen Mar 25 '11 at 9:02
up vote 3 down vote accepted

I use the following script to extract a password from the Keyring:

$ cat get_password_from_keyring 
security find-generic-password -a $1 -g 2>&1 | grep password | cut -d \" -f 2

share|improve this answer
Nice tool. Here is the manpage for security(1). – Chris Johnsen Mar 25 '11 at 9:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.