Aws-vault: Keychain Password wasn't copied

Created on 11 Jan 2017  路  2Comments  路  Source: 99designs/aws-vault

Hi,
I use 1Password to store secrets. Unfortunately Mac's Keychain password generator doesn't let you copy/paste passwords, so I just set a 30-character random password for the keychain and didn't manage to copy it properly into 1Password.

I'm now locked out of my aws-vault. This is fine - I don't need the credentials that are in it, but I'm trying to delete it ("aws-vault remove stage") and readd the profile (aws-vault add stage), and every time I'm getting prompted for my aws-vault Keychain password, which I don't have.

How can I blow away everything aws-vault and Keychain related and start over?

Most helpful comment

Aha, I figured out the answer with the help of the --debug flag. Delete these two files:

  • $HOME/Library/Keychains/aws-vault.keychain
  • $HOME/Library/Keychains/aws-vault.keychain-db

Would still be nice if this was documented.

All 2 comments

Aha, I figured out the answer with the help of the --debug flag. Delete these two files:

  • $HOME/Library/Keychains/aws-vault.keychain
  • $HOME/Library/Keychains/aws-vault.keychain-db

Would still be nice if this was documented.

Delete these two files

Spot on. Aside: *.keychain was the file extension prior to macOS Sierra, and *.keychain-db is the file extension since then. The upgrade copies and leaves the old one behind, and Keychain framework code automatically maps open("foo.keychain") to open("foo.keychain-db"). More background in https://github.com/99designs/aws-vault/pull/85

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevinburke picture kevinburke  路  5Comments

gws picture gws  路  5Comments

shivaman picture shivaman  路  6Comments

mazzy89 picture mazzy89  路  6Comments

iconara picture iconara  路  6Comments