Skip to content

Instantly share code, notes, and snippets.

View jmjohnson's full-sized avatar

Jeff Johnson jmjohnson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jmjohnson on github.
  • I am jeffreyj (https://keybase.io/jeffreyj) on keybase.
  • I have a public key ASCYrVOvRC-bKhVk8vSBGKsFbzFYmFDd-EtRZgZ3KjzUNwo

To claim this, I am signing this object:

@jmjohnson
jmjohnson / keychaincli.md
Created February 16, 2018 19:36
Storing CLI password in Keychain on Mac OS X

Secure CLI Passwords with Keychain Services on Mac OS X

Creating a Password

Dump a password into keychain. I'm using the creator/kind codes "asbl" for Ansible, but you can use any 4 character code. It's useful for doing lookups later.

$ security add-generic-password -a "root" -c "asbl" -C "asbl" -D "Ansible Vault" -s "ansible secrets" -w "secret123password456"

From man security: