[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-users
Subject:    Re: dirmngr timeout
From:       Laszlo Papp <lpapp () kde ! org>
Date:       2018-04-12 13:45:40
Message-ID: CAOMwXhN6H=L=09mwukdUad7RE5o5=BkgXza8KuZgZdGPhdSxQg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, Apr 12, 2018 at 9:30 AM, Laszlo Papp <lpapp@kde.org> wrote:

>
>
> On Wed, Apr 11, 2018 at 8:09 PM, Werner Koch <wk@gnupg.org> wrote:
>
>> On Tue, 10 Apr 2018 17:19, lpapp@kde.org said:
>>
>> > Proxy request sent, awaiting response... 200 OK
>> > Length: 58162 (57K) [application/pgp-keys]
>>
>> Okay that works.  Now we need to see why dirmngr has a different idea.
>> When we first talked on IRC, someone else reported that he had no
>> problems with that configuration - but it might not be fully the same.
>> Thus I need to try replicating the problem myself - will take some time,
>> though.
>>
>> Do you have the envvar http_proxy set?  If so you also need to have
>>
>> honor-http-proxy
>>
>> in your dirmngr.conf.
>>
>
> That is an interesting idea as one would think that the environment
> variables would be respected by default rather than opting in.
>
> honor-http-proxy did not work, but --http-proxy host[:port] did. Thank you
> for pointing me to this direction.
>
> This makes me think that dirmngr does not understand the environment
> variable by default, given that it does not work "by default" and when I
> try to reinforce this with honor-http-proxy. Is this information lost when
> gpg launches dirmngr? If so, should it not be retained?
>
> Is there a command line option for gpg, like for sudo (-E) and similar
> software applications, to pass on all the environment variables properly if
> this is the issue?
>
> gpg is also used in my docker build process, so the best would be to
> respect the environment variable by default. Are there any objections to
> that? If so, what exactly?
>

It looks like if I run dirmngr manually, as follows, with honor-http-proxy,
gpg works:

dirmngr --daemon

But when it is run as dirmngr --supervised, gpg does not seem to work until
the http-proxy is specified in the config explicitly.



>  Salam-Shalom,
>
>>
>>    Werner
>>
>> --
>> #  Please read:  Daniel Ellsberg - The Doomsday Machine  #
>> Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
>>
>> _______________________________________________
>> Gnupg-users mailing list
>> Gnupg-users@gnupg.org
>> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr \
12, 2018 at 9:30 AM, Laszlo Papp <span dir="ltr">&lt;<a href="mailto:lpapp@kde.org" \
target="_blank">lpapp@kde.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div \
class="gmail_quote"><span class="">On Wed, Apr 11, 2018 at 8:09 PM, Werner Koch <span \
dir="ltr">&lt;<a href="mailto:wk@gnupg.org" \
target="_blank">wk@gnupg.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span class="m_-2731383098015814073gmail-">On Tue, \
10 Apr 2018 17:19, <a href="mailto:lpapp@kde.org" target="_blank">lpapp@kde.org</a> \
said:<br> <br>
&gt; Proxy request sent, awaiting response... 200 OK<br>
&gt; Length: 58162 (57K) [application/pgp-keys]<br>
<br>
</span>Okay that works.   Now we need to see why dirmngr has a different idea.<br>
When we first talked on IRC, someone else reported that he had no<br>
problems with that configuration - but it might not be fully the same.<br>
Thus I need to try replicating the problem myself - will take some time,<br>
though.<br>
<br>
Do you have the envvar http_proxy set?   If so you also need to have<br>
<br>
honor-http-proxy<br>
<br>
in your dirmngr.conf.<br></blockquote><div><br></div></span><div>That is an \
interesting idea as one would think that the environment variables would be respected \
by default rather than opting in.</div><div><br></div><div>honor-http-proxy did not \
work, but  --http-proxy host[:port] did. Thank you for pointing me to this \
direction.</div><div><br></div><div>This makes me think that dirmngr does not \
understand the environment variable by default, given that it does not work &quot;by \
default&quot; and when I try to reinforce this with honor-http-proxy. Is this \
information lost when gpg launches dirmngr? If so, should it not be \
retained?</div><div><br></div><div>Is there a command line option for gpg, like for \
sudo (-E) and similar software applications, to pass on all the environment variables \
properly if this is the issue?</div><div><br></div><div>gpg is also used in my docker \
build process, so the best would be to respect the environment variable by default. \
Are there any objections to that? If so, what \
exactly?</div></div></div></div></blockquote><div><br></div><div>It looks like if I \
run dirmngr manually, as follows, with honor-http-proxy, gpg \
works:</div><div><br></div><div>dirmngr --daemon</div><div><br></div><div>But when it \
is run as dirmngr --supervised, gpg does not seem to work until the http-proxy is \
specified in the config explicitly.</div><div><br></div><div>  </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div \
class="gmail_quote"><div>  Salam-Shalom,</div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span class=""><div \
class="m_-2731383098015814073gmail-HOEnZb"><div \
class="m_-2731383098015814073gmail-h5"> <br>
     Werner<br>
<br>
--<br>
#   Please read:   Daniel Ellsberg - The Doomsday Machine   #<br>
Die Gedanken sind frei.   Ausnahmen regelt ein Bundesgesetz.<br>
</div></div><br></span>______________________________<wbr>_________________<br>
Gnupg-users mailing list<br>
<a href="mailto:Gnupg-users@gnupg.org" target="_blank">Gnupg-users@gnupg.org</a><br>
<a href="http://lists.gnupg.org/mailman/listinfo/gnupg-users" rel="noreferrer" \
target="_blank">http://lists.gnupg.org/mailman<wbr>/listinfo/gnupg-users</a><br> \
<br></blockquote></div><br></div></div> </blockquote></div><br></div></div>



_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic