[pass] "No public key" - help?
Lenz Weber
mail at lenzw.de
Sat Mar 14 14:04:44 CET 2015
No output would imply that your bash binary does not value the -x
flag, which leads me to the question... is it really a bash?
Or maybe a symlink to some other shell with slightly different
understanding of scripting?
Let's compare, this is mine:
% bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
On 14.03.2015 13:43, Matthias Beyer wrote:
> On 14-03-2015 13:36:33, Lenz Weber wrote:
>> Really no output?
>>
>
> Nope. Nothing.
>
>> Here's what I would expect (invalid target key "test-id",
>> creating test/bla with password "blas"):
>>
>> Enter password for test/bla: + echo + read -r -p 'Enter password
>> for test/bla: ' -s password Enter password for test/bla: + echo +
>> read -r -p 'Retype password for test/bla: ' -s password_again
>> Retype password for test/bla: + echo + [[ blas == \b\l\a\s ]] +
>> gpg2 -e -r test-id -o /home/lenz/.password-store/test/bla.gpg
>> --quiet --yes --compress-algo=none --no-encrypt-to --batch
>> --use-agent gpg: test-id: skipped: No public key gpg: [stdin]:
>> encryption failed: No public key
>>
>> so from that on you could try what your output's pendant of
>>
>> gpg2 -e -r test-id -o /home/lenz/.password-store/test/bla.gpg
>> --quiet --yes --compress-algo=none --no-encrypt-to --batch
>> --use-agent <<<"blas"
>>
>> gives on the command line when manually called. (note: I added
>> <<<"password" at the end)
>
> I tried:
>
> gpg2 -e -r 20CA0F94 -o /tmp/foo.gpg --quiet --yes
> --compress-algo=none --no-encrypt-to --batch --use-agent
>
> And tabbed on the Keyboard and then hit CTRL-D, which should be the
> same as you mentioned. Worked like a charm.
>
> gpg2 -e -r 20CA0F94 -o /tmp/bar.gpg --quiet --yes
> --compress-algo=none --no-encrypt-to --batch --use-agent <<<"blas"
>
> Worked like a charm, too.
>
More information about the Password-Store
mailing list