Skip to content

Commit

Permalink
Merge pull request technomancy#1808 from mavbozo/gpg-agent-docs
Browse files Browse the repository at this point in the history
Docs to fix gpg: can't query passphrase in batch mode in debian
  • Loading branch information
technomancy committed Jan 27, 2015
2 parents c652068 + fe2ee5d commit 6238586
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/GPG.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,23 @@ ignored.

## Troubleshooting

### Debian based distributions

#### gpg: can't query passphrase in batch mode

Could not decrypt credentials from /home/xxx/.lein/credentials.clj.gpg
gpg: can't query passphrase in batch mode
gpg: decryption failed: secret key not available


This error happens with gpg 1.4.12. Make sure that you have `use-agent` option explicitly enabled in `~/.gnupg/gpg.conf`. See gpg option list.

You can test whether this solution works with

gpg --quiet --batch --decrypt ~/.lein/credentials.clj.gpg

If the system asked your passphrase then problem solved.

### Mac OSX

#### Unable to get GPG installed via Homebrew and OSX Keychain to work
Expand Down

0 comments on commit 6238586

Please sign in to comment.