[pass] "No public key" - help?

Matthias Beyer mail at beyermatthias.de
Sat Mar 14 13:43:02 CET 2015


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.

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150314/b030d42f/attachment.asc>


More information about the Password-Store mailing list