pass GPG2 decryption failed: No secret key

asked 2017-03-02 09:34:26 -0500

centinel20 gravatar image

So i have been using pass for a long time now and today it stopped working.

$ pass -c test
gpg: decryption failed: No secret key

if I do:

gpg2 --list-secret-keys 
/home/pepe/.gnupg/pubring.kbx
-----------------------------
sec   rsa4096 2015-08-11 [SCA] [expires: 2017-08-31]
      4D0676BEF0473D66947741193C856DD6D6E347EE
uid           [ultimate] JLBR <centinel20@yahoo.com>
ssb   rsa4096 2015-08-11 [E] [expires: 2017-08-31]

the public key is also there.

$ gpg2 -d .password-store/test.gpg 
gpg: encrypted with 4096-bit RSA key, ID 5BBF32F805591A8F, created 2015-08-11
      "JLBR <centinel20@yahoo.com>"
gpg: public key decryption failed: No passphrase given
gpg: decryption failed: No secret key

but if I use gpg instead it works perfectly

$ gpg -d .password-store/test.gpg 

You need a passphrase to unlock the secret key for
user: "JLBR <centinel20@yahoo.com>"
4096-bit RSA key, ID 05591A8F, created 2015-08-11 (main key ID D6E347EE)

gpg: encrypted with 4096-bit RSA key, ID 05591A8F, created 2015-08-11
      "JLBR <centinel20@yahoo.com>"
sb6S%h=7RfZVS>Ef'8_>L>-l#0PyVs

I am running fedora24 and The keys are created with no problem with pass generat and the repository is initialized. Also if i comment out all gpg2 lines on /usr/bin/pass it falls back to gpg and works perfectly. Any way to fix this? Thank you for all your help.

edit retag flag offensive close merge delete