cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CA bundle & life behind a firewall with proxy

From: Guenter <lists_at_gknw.net>
Date: Fri, 01 Apr 2011 15:11:07 +0200

Hi Quanah,
Am 31.03.2011 22:25, schrieb Quanah Gibson-Mount:
> I noticed that the step to make a CA bundle fails when you live behind a
> firewall and require the use of a proxy to get outside of the network,
> even if I have the various environment variables properly set.
>
> Fortunately, it is easy to fix this by patching the perl script thusly:
>
> quanah_at_zre-ldap001:~/p4/main/ThirdParty/curl/patches$ more proxy.patch
> --- curl-7.19.7/lib/mk-ca-bundle.pl.orig 2010-03-02 17:47:44.000000000
> -0800
> +++ curl-7.19.7/lib/mk-ca-bundle.pl 2010-03-02 17:48:01.000000000 -0800
> @@ -79,6 +79,7 @@
> if (!$opt_n || !-e $txt) {
> print "Downloading '$txt' ...\n" if (!$opt_q);
> my $ua = new LWP::UserAgent(agent => "$0/$version");
> + $ua->env_proxy();
> my $req = new HTTP::Request('GET', $url);
> my $res = $ua->request($req);
> if ($res->is_success) {
>
>
> It seems to me that this would be worthwhile to add into curl itself,
> since it shouldn't have any effect when there are no proxy variables set
> in the environment, but will do the right thing when they are.
your patch does not apply since the script was changed meanwhile exactly
at this place .... :-)
I've added your modification, but I've only tested that it still works
when no proxy env var is set - please verify that also works for you
with proxy:
https://github.com/bagder/curl/blob/master/lib/mk-ca-bundle.pl

thanks, Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-01