Why does GPG not work even when installing pinentry?

Despite the fact that I install pinentry, I still get the following error:

xxxxxxxMacxxxxx:~ MAU$ gpg2 -c --cipher-algo=aes gpg-agent[89931]: can't connect to the PIN entry module: IPC connect call failed gpg-agent[89931]: command get_passphrase failed: No pinentry gpg: problem with the agent: No pinentry gpg: error creating passphrase: Operation cancelled gpg: symmetric encryption of `[stdin]' failed: Operation cancelled 
+4
source share
2 answers

You may have an old (and incorrect) entry in your gpg-agent.conf . Check this configuration file for the wrong pinentry path and delete this line.

+2
source

I got this error message while trying to decrypt a (symmetrically encrypted) file on OS X (macOS Sierra 10.12.4). The solution was to add the --pinentry-mode loopback option

 bla$ gpg -d ciphertext.gpg gpg: AES encrypted data gpg: problem with the agent: No pinentry gpg: encrypted with 1 passphrase gpg: decryption failed: No secret key bla$ gpg --pinentry-mode loopback -d ciphertext.gpg gpg: AES encrypted data Enter passphrase: ... gpg: encrypted with 1 passphrase ...plaintext... 
+2
source

Source: https://habr.com/ru/post/1495927/


All Articles