Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to show password on OSX #209

Closed
vesparny opened this issue Jul 21, 2017 · 2 comments
Closed

Unable to show password on OSX #209

vesparny opened this issue Jul 21, 2017 · 2 comments
Assignees
Labels
bug Defects

Comments

@vesparny
Copy link

Hi, thanks a lot for this amazing tool.

I am trying to use it on my mac and I get the following error while trying to show a password

$ GOPASS_DEBUG=true  gopass show ale
[DEBUG] Loaded config from /Users/aarnodo/.config/gopass/config.yml: &{AlwaysTrust:true AskForMore:false AutoImport:true AutoPull:true AutoPush:true ClipTimeout:45 Debug:false FsckFunc:<nil> ImportFunc:<nil> LoadKeys:true Mounts:map[] NoColor:false NoConfirm:false Path:/Users/aarnodo/.password-store PersistKeys:true SafeContent:false Version:}
[DEBUG] gpg.listKeys: /usr/local/bin/gpg2 [/usr/local/bin/gpg2 --with-colons --with-fingerprint --fixed-list-mode --list-public-keys noname (This is a key I only use to encrypt my passwords. Not to be shared) <noname@example.com>]
[DEBUG] gpg.Decrypt: /usr/local/bin/gpg2 [/usr/local/bin/gpg2 --quiet --yes --compress-algo=none --no-encrypt-to --no-auto-check-trustdb --decrypt /Users/aarnodo/.password-store/ale.gpg]

Error: Failed to decrypt

I do not get the gpg prompt asking for password

if I run the command

/usr/local/bin/gpg2 --quiet --yes --compress-algo=none --no-encrypt-to --no-auto-check-trustdb --decrypt /Users/aarnodo/.password-store/ale.gpg

I do get it correctly

if I try to show the password using pass, after I've insert the master password in the prompt, I am able to see it.

If I now try tu use gopass, I am also to see the password as well. I guess because the gpg master password is cached, and gopass does not try anymore to display the prompt

screen shot 2017-07-21 at 10 50 35

@vesparny
Copy link
Author

I guess it's a duplicate of #208

@jamesboswell
Copy link

jamesboswell commented Jul 29, 2017

FYI, I think this is due to the Homebrew formula updating GPG. The tell-tale sign for me was

$ which gpg2 
gpg2  not found

Run brew doctor and see if gnupg is listed as unlinked. This was true for me.

brew link --overwrite --dry-run gnupg
Would remove:
/usr/local/bin/dirmngr -> /usr/local/Cellar/dirmngr/1.1.1_2/bin/dirmngr
/usr/local/bin/dirmngr-client -> /usr/local/Cellar/dirmngr/1.1.1_2/bin/dirmngr-client
/usr/local/share/man/man1/dirmngr-client.1 -> /usr/local/Cellar/dirmngr/1.1.1_2/share/man/man1/dirmngr-client.1

$ brew link --overwrite gnupg
Linking /usr/local/Cellar/gnupg/2.1.22... 71 symlinks created

##  Now gpg2 is properly symlinked
gpg2
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: Go ahead and type your message ...
^C
gpg: signal Interrupt caught ... exiting

Now that gpg2 is properly symlink, gopass should be able to reach it. My errors stopped.

dominikschulz pushed a commit to dominikschulz/gopass that referenced this issue Aug 9, 2017
@dominikschulz dominikschulz added this to the 1.3.0 - Improved UX milestone Aug 9, 2017
kpitt pushed a commit to kpitt/gopass that referenced this issue Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects
Projects
None yet
Development

No branches or pull requests

4 participants