No way to use gpg passphrase-file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
duplicity (Fedora) |
New
|
Undecided
|
Unassigned |
Bug Description
duplicity 0.6.05, Python 2.5.2, linux 2.6.27.38
There is no way to use passphrase file with duplicity, normally available with gpg.
For example this works well:
cat file | gpg --batch -c --passphrase-file /mysecretkey - | ncftp dst
It is broken in duplicity:
duplicity --verbosity 9 --gpg-options "passphrase-
Because the key is read from filem, duplicity should not ask for it.
Furthermore, using export PASSPHRASE="" doesn't help.
Duplicity then crashes with:
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
usage: gpg [options] [filename]
===== End GnuPG log =====
Dirty workaround:
export PASSPHRASE="`cat /mysecretkey`"
Possible solution 1 - new param for duplicity:
--
Possible solution 2 - detect passphrase-file param in gpg-options.
Changed in duplicity: | |
status: | New → Fix Committed |
use the --gpg-options parameter e.g. --gpg-options '--passphrase-file /mysecretkey'
.. ede