[pass] "No public key" - help?

Lucas Hoffmann l-m-h at web.de
Sat Mar 14 13:11:47 CET 2015


On Sat, Mar 14, 2015 at 12:51:59PM +0100, 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.

Here is the stderr for `bash -x pass insert test` on my machine.  Maybe
that helps.  I'm using pass v1.6.5, gpg v2.1.2 on Arch Linux.
-------------- next part --------------
+ umask 077
+ set -o pipefail
+ GPG_OPTS=("--quiet" "--yes" "--compress-algo=none" "--no-encrypt-to")
+ GPG=gpg
+ export GPG_TTY=/dev/pts/1
+ GPG_TTY=/dev/pts/1
+ which gpg2
+ GPG=gpg2
+ [[ -n depricated since GPG 2.1 ]]
+ GPG_OPTS+=("--batch" "--use-agent")
+ PREFIX=/home/luc/.config/pass
+ X_SELECTION=clipboard
+ CLIP_TIME=45
+ export GIT_DIR=/home/luc/.config/pass/.git
+ GIT_DIR=/home/luc/.config/pass/.git
+ export GIT_WORK_TREE=/home/luc/.config/pass
+ GIT_WORK_TREE=/home/luc/.config/pass
+ GETOPT=getopt
+ SHRED='shred -f -z'
+ PROGRAM=pass
+ COMMAND=insert
+ case "$1" in
+ shift
+ cmd_insert test
+ local opts multiline=0 noecho=1 force=0
++ getopt -o mef -l multiline,echo,force -n pass -- test
+ opts=' -- '\''test'\'''
+ local err=0
+ eval set -- ' -- '\''test'\'''
++ set -- -- test
+ true
+ case $1 in
+ shift
+ break
+ [[ 0 -ne 0 ]]
+ [[ 0 -eq 1 ]]
+ [[ 1 -ne 1 ]]
+ local path=test
+ local passfile=/home/luc/.config/pass/test.gpg
+ check_sneaky_paths test
+ local path
+ for path in '"$@"'
+ [[ test =~ /\.\.$ ]]
+ [[ test =~ ^\.\./ ]]
+ [[ test =~ /\.\./ ]]
+ [[ test =~ ^\.\.$ ]]
+ [[ 0 -eq 0 ]]
+ [[ -e /home/luc/.config/pass/test.gpg ]]
++ dirname test
+ mkdir -p -v /home/luc/.config/pass/.
++ dirname test
+ set_gpg_recipients .
+ GPG_RECIPIENT_ARGS=()
+ GPG_RECIPIENTS=()
+ [[ -n '' ]]
+ local current=/home/luc/.config/pass/.
+ [[ /home/luc/.config/pass/. != \/\h\o\m\e\/\l\u\c\/\.\c\o\n\f\i\g\/\p\a\s\s ]]
+ [[ ! -f /home/luc/.config/pass/./.gpg-id ]]
+ current=/home/luc/.config/pass/./.gpg-id
+ [[ ! -f /home/luc/.config/pass/./.gpg-id ]]
+ local gpg_id
+ read -r gpg_id
+ GPG_RECIPIENT_ARGS+=("-r" "$gpg_id")
+ GPG_RECIPIENTS+=("$gpg_id")
+ read -r gpg_id
+ [[ 0 -eq 1 ]]
+ [[ 1 -eq 1 ]]
+ local password password_again
+ true
+ read -r -p 'Enter password for test: ' -s password
Enter password for test: + echo
+ read -r -p 'Retype password for test: ' -s password_again
Retype password for test: + echo
+ [[ test == \t\e\s\t ]]
+ gpg2 -e -r 001A41A1 -o /home/luc/.config/pass/test.gpg --quiet --yes --compress-algo=none --no-encrypt-to --batch --use-agent
+ break
+ git_add_file /home/luc/.config/pass/test.gpg 'Add given password for test to store.'
+ [[ -d /home/luc/.config/pass/.git ]]
+ return
+ exit 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150314/1859cfcf/attachment.asc>


More information about the Password-Store mailing list