[pass] "No public key" - help?

Lenz Weber mail at lenzw.de
Sat Mar 14 13:36:33 CET 2015


Really no output?

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)



On 14.03.2015 12:51, Matthias Beyer wrote:
> On 14-03-2015 12:04:56, Lenz Weber wrote:
>> I just noticed you can do that without editing the pass script: 
>> just call
>> 
>> bash -x `which pass` insert test
>> 
> 
> This prints some "export PATH=" things before anything, but does
> not print anything except the "No public key" thing after I typed
> in the password.
> 


More information about the Password-Store mailing list