-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gpg-agent usage instructions to the README [ref #18]
- Loading branch information
Oleiade
committed
Nov 24, 2013
1 parent
479ddce
commit 66820e6
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,11 @@ sudo cp ./bin/trousseau /usr/local/bin/trousseau | |
### Gpg passphrase | ||
|
||
Every decryption operations will require your *gpg* primary key passphrase. | ||
As of today, **trousseau** is able to handle your passphrase through your system's keyring manager, the system environment or the global option ``--passphrase``. | ||
As of today, **trousseau** is able to handle your passphrase through multiple ways: | ||
* system's keyring manager | ||
* gpg-agent daemon | ||
* system environment | ||
* ``--passphrase`` global option | ||
|
||
#### Keyring manager | ||
|
||
|
@@ -95,6 +99,16 @@ $ export TROUSSEAU_KEYRING_SERVICE=my_keyring_key | |
$ trousseau get abc | ||
``` | ||
|
||
#### Gpg agent | ||
|
||
Another authentication method supported is gpg-agent. In order to use it make sure you've started the gpg-agent daemon and exported the ``GPG_AGENT_INFO`` variable, trousseau will do the rest. | ||
|
||
```bash | ||
$ export GPG_AGENT_INFO=path_to_the_gpg_agent_info_file | ||
$ export [email protected] | ||
$ trousseau get abc | ||
``` | ||
|
||
#### Environment variable | ||
|
||
Alternatively, you can pass your primary key passphrase as `TROUSSEAU_PASSPHRASE` environment variable: | ||
|