* gpg-agent issue
@ 2015-03-17 12:49 Valentin Reis
2015-03-17 12:51 ` valentin.reis
2015-03-17 13:31 ` [sup] " Johannes Larsen
0 siblings, 2 replies; 4+ messages in thread
From: Valentin Reis @ 2015-03-17 12:49 UTC (permalink / raw)
To: supmua
Hello,
Sup asks for my gpg passphrase every time it has to encrypt, sign or
decrypt an e-mail, even though I am using gpg-agent.
When decrypting files sequentially using gpg or gpg2, gpg-agent is used,
and I have to provide the passphrase just once.
Here are the contents of my config files:
.gnupg/gpg.conf
keyserver hkp://keys.gnupg.net
use-agent
.gnupg/gpg-agent.conf
pinentry-program /usr/bin/pinentry-curses
.sup/config.yaml
...
:accounts:
:default:
...
:gpgkey: 59EA13A1
...
No crypto hooks in .sup/hooks are in use.
gpg --list-keys
/home/fre/.gnupg/pubring.gpg
----------------------------
pub 2048R/59EA13A1 2014-04-28
uid Valentin Reis <valentin.reis@gmail.com>
sub 2048R/C8DA9D35 2014-04-28
sub 2048R/4F728EEB 2014-04-28
It is a debian machine. Various apt-get output:
gnupg-agent is already the newest version.
libgpgme11 is already the newest version.
gnupg2 is already the newest version.
Cheers!
val
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gpg-agent issue
2015-03-17 12:49 gpg-agent issue Valentin Reis
@ 2015-03-17 12:51 ` valentin.reis
2015-03-17 13:31 ` [sup] " Johannes Larsen
1 sibling, 0 replies; 4+ messages in thread
From: valentin.reis @ 2015-03-17 12:51 UTC (permalink / raw)
To: supmua
[-- Attachment #1.1: Type: text/plain, Size: 1314 bytes --]
In case this is not clear, I would like sup to use gpg-agent correctly, so
as not to have to enter my passphrase repeatedly.
Do any of you see something I'm doing wrong?
Thanks!
On Tuesday, 17 March 2015 13:49:24 UTC+1, valentin.reis wrote:
>
> Hello,
>
> Sup asks for my gpg passphrase every time it has to encrypt, sign or
> decrypt an e-mail, even though I am using gpg-agent.
> When decrypting files sequentially using gpg or gpg2, gpg-agent is used,
> and I have to provide the passphrase just once.
>
> Here are the contents of my config files:
>
> .gnupg/gpg.conf
> keyserver hkp://keys.gnupg.net
> use-agent
>
> .gnupg/gpg-agent.conf
> pinentry-program /usr/bin/pinentry-curses
>
> .sup/config.yaml
> ...
> :accounts:
> :default:
> ...
> :gpgkey: 59EA13A1
> ...
>
> No crypto hooks in .sup/hooks are in use.
>
> gpg --list-keys
> /home/fre/.gnupg/pubring.gpg
> ----------------------------
> pub 2048R/59EA13A1 2014-04-28
> uid Valentin Reis <valentin.reis@gmail.com>
> sub 2048R/C8DA9D35 2014-04-28
> sub 2048R/4F728EEB 2014-04-28
>
> It is a debian machine. Various apt-get output:
> gnupg-agent is already the newest version.
> libgpgme11 is already the newest version.
> gnupg2 is already the newest version.
>
> Cheers!
> val
>
> --
>
[-- Attachment #1.2: Type: text/html, Size: 2232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup] gpg-agent issue
2015-03-17 12:49 gpg-agent issue Valentin Reis
2015-03-17 12:51 ` valentin.reis
@ 2015-03-17 13:31 ` Johannes Larsen
2015-03-17 13:33 ` Valentin Reis
1 sibling, 1 reply; 4+ messages in thread
From: Johannes Larsen @ 2015-03-17 13:31 UTC (permalink / raw)
To: supmua
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
gpg-agent caches the passphrase for a limited time (a couple of hours if
remember correctly). to check if this is the problem try signing a file
(thereby providing gpg-agent with a passphrase) then start sup in the
same shell and check if its signs emails. the time gpg-agent caches the
passphrase can be changed with: (~/.gnupg/gpg-agent.conf)
max-cache-ttl <SECONDS>
if the passphrase caching is not the problem you might have initiated
gpg-agent insufficiently. this is what I source from ~/.bashrc to
initiate the gpg-agent or connect to a running gpg-agent:
if [ -f "${HOME}/.gpg-agent-info" ]; then
. "${HOME}/.gpg-agent-info"
export GPG_AGENT_INFO
fi
gpg-agent --daemon --write-env-file "${HOME}/.gpg-agent-info" --quiet &> /dev/null
export GPG_TTY=$(tty)
if you read `man gpg-agent` it mentions that exporting GPG_TTY is
important, so if you do not do this already, it might be a good place to
start.
--
johs (Johannes Larsen), (+47) 41435451
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup] gpg-agent issue
2015-03-17 13:31 ` [sup] " Johannes Larsen
@ 2015-03-17 13:33 ` Valentin Reis
0 siblings, 0 replies; 4+ messages in thread
From: Valentin Reis @ 2015-03-17 13:33 UTC (permalink / raw)
To: supmua
Hi,
I just figured the same thing here :) Thanks for the fast answer.
Indeed, I started sup-mail using a separate script which does not export
the environment variable.
Thanks for the help.
Valentin
Excerpts from Johannes Larsen's message of 2015-03-17 14:31:08 +0100:
> gpg-agent caches the passphrase for a limited time (a couple of hours if
> remember correctly). to check if this is the problem try signing a file
> (thereby providing gpg-agent with a passphrase) then start sup in the
> same shell and check if its signs emails. the time gpg-agent caches the
> passphrase can be changed with: (~/.gnupg/gpg-agent.conf)
>
> max-cache-ttl <SECONDS>
>
> if the passphrase caching is not the problem you might have initiated
> gpg-agent insufficiently. this is what I source from ~/.bashrc to
> initiate the gpg-agent or connect to a running gpg-agent:
>
> if [ -f "${HOME}/.gpg-agent-info" ]; then
> . "${HOME}/.gpg-agent-info"
> export GPG_AGENT_INFO
> fi
> gpg-agent --daemon --write-env-file "${HOME}/.gpg-agent-info" --quiet &> /dev/null
> export GPG_TTY=$(tty)
>
> if you read `man gpg-agent` it mentions that exporting GPG_TTY is
> important, so if you do not do this already, it might be a good place to
> start.
>
> --
> johs (Johannes Larsen), (+47) 41435451
>
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-17 13:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 12:49 gpg-agent issue Valentin Reis
2015-03-17 12:51 ` valentin.reis
2015-03-17 13:31 ` [sup] " Johannes Larsen
2015-03-17 13:33 ` Valentin Reis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox