curl-library
Re: CA bundle & life behind a firewall with proxy
Date: Fri, 01 Apr 2011 09:16:15 -0700
--On Friday, April 01, 2011 3:11 PM +0200 Guenter <lists_at_gknw.net> wrote:
> 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
Will do. It applies (with offset) fine for me anyhow to 7.21.4. ;)
--Quanah
-- Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-01