#247 ✓invalid
bensima (at gmail)

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

Pages