
GPG CLI --batch not working on OSX
Reported by bensima (at gmail) | July 18th, 2014 @ 03:06 AM | in 1.2 (closed)
I run the following code:
gpg --decrypt ~/.lein/credentials.clj.gpg
and it works; I enter my passphrase and decrypt the file.
I run the following code:
gpg --batch --decrypt ~/.lein/credentials.clj.gpg
and I get the following error:
gpg: can't query passphrase in batch mode
gpg: encrypted with 2048-bit RSA key, ID 6BDD8069, created 2014-03-12
"Ben Sima <Bensima@gmail.com>"
gpg: public key decryption failed: bad passphrase
gpg: decryption failed: secret key not available
I have no idea what's wrong. I originally found this problem while trying to push a library to Clojars. Here is a related ticket: https://github.com/technomancy/leiningen/issues/1349
I haven't been able to get any of those fixes (hard-restart
gpg-agent
) to work for me.
Comments and changes to this ticket
-
bensima (at gmail) July 18th, 2014 @ 03:27 AM
I figured out a solution. My fix is this:
- Open
~/.gnupg/gpg.conf
in vim or some other text editor - Scroll to the bottom of the file and add
use-agent
, or find that in the file and uncomment it
Now it works like a charm. (Thank god for Arch Wiki)
- Open
-
Mento July 22nd, 2014 @ 02:03 PM
- Importance changed from to Low
Hi bensima!
Which version of GPG do you use?
I think this behavior is expected in version 1.Regards, Mento
-
steve September 14th, 2014 @ 08:20 PM
- State changed from new to invalid
- Tag cleared.
No feedback. INVALID.
If you still run into this using MacGPG2 please open a discussion on our support page here http://support.gpgtools.org/.
-
steve June 18th, 2015 @ 01:11 PM
- Milestone set to 1.2
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป