curl-library
CA bundle & life behind a firewall with proxy
Date: Thu, 31 Mar 2011 13:25:31 -0700
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.
--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-03-31