Gpg: decryption error: invalid session key
I am trying to decrypt a file using gpg and get this error:
$ gpg --no-tty --batch --verbose --decrypt --passphrase foo file.enc
Version: GnuPG v1.4.11 (GNU/Linux)
gpg: armor header:
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
I tried to restart the gpg agent with no luck:
$ gpgconf --reload gpg-agent
How to solve this?
+3
source to share