Skip to content

Commit

Permalink
Merge pull request technomancy#2078 from danielcompton/patch-1
Browse files Browse the repository at this point in the history
Add troubleshooting steps for gpg: decryption failed
  • Loading branch information
hypirion committed Feb 3, 2016
2 parents 6ccb494 + f6963be commit 5cbd7b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/GPG.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,27 @@ You can test the config with

Leiningen should pick it up automatically when the command above works correctly.

#### gpg: decryption failed: secret key not available

When you run

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

you get the error message

gpg: decryption failed: secret key not available

try running it without `--quiet`

gpg --use-agent --decrypt ~/.lein/credentials.clj.gpg

If you get

gpg: encrypted with RSA key, ID DEAD8F70
gpg: decryption failed: secret key not available

run `gpg -k` and check that `DEAD8F70` is in the known keys list. If it isn't, `~/.lein/credentials.clj.gpg` may have been encrypted with a different key.

### GPG prompts for passphrase but does not work with Leiningen

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

0 comments on commit 5cbd7b0

Please sign in to comment.