I have RedHat secureweb (basically just apache with SSL support)
running successfully as an https proxy.
In order for the secure proxy in Apache to work, you have to create a
test certificate. For the particular installation I use, it puts a
Makefile in /etc/httpd/conf. To create the certificate you can run :
make genkey
make certreq
make testcert
and then restart httpsd
Then in LWP, do something like this :
$ua->proxy('http','http://192.168.20.42');
$ua->proxy('https','http://192.168.20.42');
Make sure you use http, not https, which will let Apache handle all of
the SSL stuff.
Hope this helps!
John Mannix writes:
> I got hold of an old modem so that I could dial up directly from my Linux
> machine and that fixed the problem, so it looks like libwww can't handle
> secure connections via a proxy server.
>
> John
>
> ----- Original Message -----
> From: "Lin, Peter " <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 13, 2000 2:13 PM
> Subject: HTTPS proxy setup
>
>
> > John,
> > Got your email in LWP maillist, I have the same problem.(see attached)
> > If you have your problem fixed, can you send it to me.
> > Peter
> >
> > >From: "John Mannix" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Subject: HTTPS proxy setup
> >
> > >I'm trying to get lib-www-perl to post some form data to a secure server
> > via a proxy server. I've tried several variations along the lines of:
> > >
> > >$ua = new LWP::UserAgent;
> > >$ua->proxy(https => 'https://xxx.xxx.x.x:port');
> > >$req = new HTTP::Request(POST => 'https://something.com');
> > >$res = $ua->request($req);
> > >print $res->as_string;
> > >
> > >If I don't set up the proxy I get an error message saying the site cannot
> > be found, which is to be expected. When I set up the proxy the script
> hangs.
> > >
> > >The proxy handles https ok when used from a browser. I've tried pointing
> > the proxy at http:// and https:// but neither seems to work.
> > >
> > >Any idea what is going wrong?
> > >
> > >Thanks,
> > >John
> > >
> > >-- Governor Technology ---------------------------------
> > >Web and Internet Software Development
> > >John Mannix MA (Cantab)
> > >Telephone: +44 20 8857 9846
> > >Facsimile: +44 20 8857 8839
> > >Email: [EMAIL PROTECTED]
> > >Web: www.governor.co.uk
> >
> > Peter C. Lin
> > CDAS/MDMA Development
> > * 626-967-8204 / PAX: 48204, * [EMAIL PROTECTED]
> >
--
--------------------------------------------------------------
Fair Winds, Software Engineer and WWW developer
Chris Dunn MRM, inc.
Email: [EMAIL PROTECTED]
Phone: (919) 544-6500 Ext 228
Pager: (919) 506-0819
http://www.mrmnc.com
--------------------------------------------------------------