Skip to main content

gopass on a new system

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.

  1. Bring over your desired GNUPG2 configuration.
  2. 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
  1. Install gopass per the instructions on their site.
  2. Make tweaks to deal with current macOS issues:
$ git config --global gpg.program $(which gpg2)
$ echo "no-tty" >>~/.gnupg/gpg.conf
  1. Grab the passwords stored in the repo:
$ gopass clone git@bitbucket.org:MaDeuce/gopass.git
  1. Test it out:
$ gopass
$ gopass foo.com/password