Re: CA bundle & life behind a firewall with proxy
2011-04-01 13:11:07 GMT
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
> <at> <at> -79,6 +79,7 <at> <at>
> 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:
(Continue reading)
RSS Feed