I find gopass to be a great password and credential manager; it's replacee
pass in my workflow. These are notes on how to bring over passwords
managed by it to a new macOS system.
- Bring over your desired GNUPG2 configuration.
- If GNUPG2 isn't already present:
$ sudo port install gnupg2
$ sudo port install pinentry-mac
# If not present already, configure gpg-agent to use pinentry-mac
$ PE="pinentry-program /Applications/MacPorts/pinentry-mac.app/Contents/MacOS/pinentry-mac"
$ echo "$PE" >> ~/.gnupg/gpg-agent.conf
- Install gopass per the instructions on their site.
- Make tweaks to deal with current macOS issues:
$ git config --global gpg.program $(which gpg2)
$ echo "no-tty" >>~/.gnupg/gpg.conf
- Grab the passwords stored in the repo:
$ gopass clone email@example.com:MaDeuce/gopass.git
- Test it out:
$ gopass foo.com/password