Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No public key #308

Closed
SMesser opened this issue Apr 6, 2017 · 2 comments
Closed

No public key #308

SMesser opened this issue Apr 6, 2017 · 2 comments

Comments

@SMesser
Copy link

SMesser commented Apr 6, 2017

How do I tell QtPass to use my public key?

From the command line, gpg says I have one

$ gpg --list-secret-keys --keyid-format LONG
/Users/sarah/.gnupg/pubring.kbx
-------------------------------
sec   rsa2048/DB836B258B5D7AA2 2017-04-06 [SC]
      0B83F95C40A2B5B97BA41901DB836B258B5D7AA2
uid                 [ultimate] Sarah Messer <sarah.messer@mycomputer.org>
ssb   rsa2048/270E0585963ADC94 2017-04-06 [E]

When I try to create a password in QtPass, I get
gpg: gpg-agent: skipped: No public key gpg: [stdin]: encryption failed: No public key

https://qtpass.org/docs/md__f_a_q.html asks "Is the folder initialized?" But doesn't say which folder or how to initialize it. The QtPass "Users" button shows a single user, which is checked:
Sarah Messer <sarah.messer@mycomputer.org> DB836B258B5D7AA2 created 4/6/17 2:51 PM

FWIW, I'm using Mac Sierra /OSX, with QtPass and Qt5 installed via Brew. The key pair was generated with gpg2 --full-generate-key, and installation followed the pattern at https://qtpass.org/ until qmake && make && macdeployqt QtPass.app terminated with a generic usage message for qmake, but no actual error message.

The Configuration -- Programs tab says I'm using "Native git/gpg". (I have git installed on the machine, but am confused as to why QtPass needs it, and I haven't done a git init or anything similar in ~/.gnupg/. ls -al /usr/local/bin/gpg2 and ls -al /usr/bin/git confirms I have read permissions (755) on both the "Native git/gpg" files. The "pwgen" entry is currently blank.

echo $GPGHOME returns blank.

Thanks

@annejan
Copy link
Member

annejan commented May 4, 2017

The quickest fix would be to edit the .gpg-id file in the .password-store

Possibly you can use the "User" management option in QtPass . .

@annejan
Copy link
Member

annejan commented May 4, 2017

On first use QtPass should ask you for users (gpg id's) when initialising the password-store . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants