Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
Add gpg troubleshooting steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Briggs committed Aug 28, 2017
1 parent fb8aa52 commit 4bb8ebf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Expand Up @@ -70,8 +70,6 @@ With that in mind, Unseal supports GPG decryption. If you've initialized your Va
An example config would look like this:
```
gpg: true
gpgsecretkeyring: "/home/jaxxstorm/.gnupg/secring.gpg"
gpgpublickeyring: "/home/jaxxstorm/.gnupg/pubring.gpg"
hosts:
- name: test
- port: 8200
Expand All @@ -80,6 +78,14 @@ hosts:

**Note** - if you have a GPG agent running and you've put the unseal keys in your `config.yaml` - anyone with access to your machine can easily decrypt the values without having to know your GPG password. Be warned.

### Troubleshooting

Unseal simply executes the gpg command to decrypt keys. If you're having any issues with GPG support, I'd suggest doing the following:

1) Ensure you can decrypt the keys manually. Use `echo <base64_key> | base64 -D | gpg -dq`. If this doesn't work, unseal won't work either
2) Ensure you have gpg-agent running, and have a valid `gpg-agent.conf`
3) Ensure your key is a valid base64 encoded string. Again, `echo <base64_key> | base64 -D | gpg -dq` will verify this

## CAPath

Unseal does not support unsecured HTTP API calls, and you probably shouldn't be using Vault over HTTP anyway :)
Expand Down

0 comments on commit 4bb8ebf

Please sign in to comment.