Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 1 down vote accepted

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


$ cat get_password_from_keyring 
#!/bin/bash
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
add comment

Your Answer

 
discard

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.