proxy issues

2013-09-23
2013-09-24
  • don danbury

    don danbury - 2013-09-23

    Hello Everybody.

    First of all my technical data:
    I'm using TB 24.0 portable from www.portableapps.com, GPG for TB Portable 1.4.13 also from www.portableapps.com and Enigmail 1.5.2. TB connects to the internet using a SOCKS v5 Host running on 127.0.0.1:4711. So far so good.

    When I try to send or receive keys to or from keyserver I'm getting into trouble. The following message occours:

    Senden der Schlüssel fehlgeschlagen
    ?: sks.mit.edu: Unable to connect: ec=0
    gpgkeys: HTTP post error 7: couldn't connect: No error
    gpg: sending key XXXXX to hkp server sks.mit.edu

    Appearently gpg does not use the Proxy-settings from TB. So I did some research and found this thread:
    https://www.enigmail.net/forum/viewtopic.php?f=3&t=245&start=15

    According to it I did

    Search for the preference extensions.enigmail.respectHttpProxy and set it to false.
    and added "--keyserver-options http-proxy=127.0.0.1:4711" as additional parameter for gpg.

    Now, uploading Keys to the keyserver works without error message (but I still don't think it works, as it finishes so quickly) but when I try to update keys from the server i get the following message:

    Herunterladen der Schlüssel ist fehlgeschlagen
    ?: invalid HTTP proxy (127.0.0.1:4711): unsupported URI
    gpgkeys: HTTP fetch error 7: couldn't connect: No error
    gpg: requesting key XXXXX from hkp server pgp.mit.edu
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0

    I played with the parameter and changed it to "--keyserver-options http-proxy=http://127.0.0.1:4711". And so did the error message:

    Herunterladen der Schlüssel ist fehlgeschlagen
    ?: socket read error: ec=10053
    gpgkeys: HTTP fetch error 7: couldn't connect: eof
    gpg: requesting key 2F981C13 from hkp server pgp.mit.edu
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0

    Now I don't know what to do. I'm looking for a way to use Enigmail, gpg and keyservers behing a socks-proxy.

    Does anyone here have any ideas how to achieve this?

    Thanks a lot!

    Donald

     
  • Patrick Brunschwig

    The problem is that GnuPG (not Enigmail) needs to use the proxy here. Enigmail can tell GnuPG about the configured proxy, but unfortunately, AFAIK GnuPG does not support socks proxies.

     
    • don danbury

      don danbury - 2013-09-24

      Thanks Patrick. I was somehow expecting such an answer. I found this:

      http://quack1.me/gpg_proxy_socks-en.html

      They talk about the parameter being

      http-proxy=socks5-hostname://127.0.0.1:1080

      But i doesnt work for me either. Tonight, when i come home, i will test this on linux, maybe it's only working there.

      Anyway, cheers!

      Donald

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks