Error

No secret key

Description

When running pass on a password file, it cannot decrypt the gpg file. Running gpg directly on the file, decrypts the content without any error. The requried gpg key is also imported:

$ pass show testfile
$ gpg: decryption failed: No secret key

Solution: There is something like gpg2. In some cases gpg2 does not see the same secret key files as gpg does. A simple

$ gpg2 --list-secret-keys

can determine if this is the case. Importing the missing key into gpg2 as well, is likely the right fix for this problem.