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 password prompt for key #1

Open
dpogue opened this issue Jan 10, 2011 · 8 comments
Open

No password prompt for key #1

dpogue opened this issue Jan 10, 2011 · 8 comments

Comments

@dpogue
Copy link

dpogue commented Jan 10, 2011

I've compiled the plugin (as of 0.8.1), and installed it. I see it in the plugins list and I can select my key.
However, I don't get a password prompt when connecting the account, and the debug window has some error messages about no password.

I'll get debug logs and attach them.

@segler-alex
Copy link
Owner

it should ask for password automatically. hmmm.
logs would be nice.
it should ask for password pidgin restart or if you disconnect and reconnect to your xmpp servers

@dpogue
Copy link
Author

dpogue commented Jan 10, 2011

The logs show these errors, and I never see a password prompt.
(11:44:06) core-segler-pidgin-gpg: signing status 'Hello World' with key KEY REMOVED core-segler-pidgin-gpg: gpgme_op_sign failed: GPGME Bad passphrase
(11:44:06) core-segler-pidgin-gpg: sign failed

@segler-alex
Copy link
Owner

i think i found a possible cause for your problem:
you have to enable gpg-agent

just add "use-agent" to ~/.gnupg/gpg.conf
and it should work

@dpogue
Copy link
Author

dpogue commented Jan 10, 2011

I have use-agent in ~/.gnupg/gpg.conf and I've installed gnupg-agent. I'm still not seeing any prompt for a password.

@segler-alex
Copy link
Owner

gpg-agent has to be running as daemon. it sets some environment variables, pidgin has to know about. if you type on console:
set | grep GPG
you should see something like:
GPG_AGENT_INFO=/tmp/gpg-O7vxf9/S.gpg-agent:3792:1

@segler-alex
Copy link
Owner

help on invoking gpg-agent:
http://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html

ubuntu does this automatically

@dpogue
Copy link
Author

dpogue commented Jan 11, 2011

With gpg-agent running, I get the password prompt. It doesn't seem to find anyone's public keys though. Should it try to be reading those from the keychain?

@segler-alex
Copy link
Owner

you have to have the key of the other persons you want to chat with.
there is a feature i implemented to send the public key from within conversation dialog "options->send key" but i haven't tested it too much :)

segler-alex pushed a commit that referenced this issue Sep 20, 2016
Merge from github-8kn:master
segler-alex pushed a commit that referenced this issue Sep 20, 2016
Be more forgiving if PREF_MY_KEY is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants