6

Is there a command in security that lists the names of all keys that have been added to the keychain through add-generic-password?

I've tried, but it find-generic-password only ever returns one result as far as I know.

3

This did it for me

security dump-keychain | grep 0x00000007 | awk -F= '{print $2}'

I used it for this blog post: https://www.aria.ai/blog/posts/storing-secrets-with-keychain.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .