0

I am using GPG Version 2.2.20 and whenever I run the following command while signing the release file, I am prompted for the passphrase.

gpg  --default-key <my_email> --clearsign -o - Release > InRelease

I want to avoid getting prompts and pass the passphrase directly in the command. After reading a few answers for other questions, I tried these commands:

gpg  --default-key <my_email> --passphrase <my_passphrase> --clearsign -o - Release > InRelease 
gpg  --default-key <my_email>  --batch --passphrase <my_passphrase> --clearsign -o - Release > InRelease 

But the problem is still the same, it is prompting me for the passphrase instead of taking directly from the given command. How do I pass the passphrase correctly to the command?

1 Answers1

0

For GnuPG version 2.1 and later you must include the option --pinentry-mode loopback in order for the --passphrase option to work.

fuzzydrawrings
  • 1,656
  • 5
  • 12